btMakeDiscoverable (Function) |
Top Previous Next |
This function can make the device discoverable, i.e. visible for other devices. With this function, it is possible to make the device visible for a period of time when e.g. a DIP switch is toggled, an SMS is received or a button is pushed on a menu. Alternatively the device can be kept visible at all times.
Input: discoverable : BOOL (default TRUE) Set to TRUE to make the device visible, set to FALSE to make the device stop being visible immediately.
timeout : DINT (default 60) The timeout in seconds before turning invisible again. If set to 0, it will stay visible until btMakeDiscoverable is called with discoverable set to FALSE.
Returns: INT
Declaration: FUNCTION btMakeDiscoverable : INT;
Example: INCLUDE rtcu.inc
|