btSearch (Function) |
Top Previous Next |
This searches for Bluetooth devices in the area. All devices found in the search are assigned a device number, which is the reference when using library functions such as btConnect or btGetDeviceName etc. The function will return the number of devices found in the search. A found device is not necessarily assigned the same number in each search - use btGetDeviceName, btGetDeviceType, or btGetDeviceAddress to determine which device number to connect to.
Input: None
Returns: INT Number of devices found in the search.
Declaration: FUNCTION btSearch : INT;
Example: INCLUDE rtcu.inc |