This command makes your Android phone or tablet discoverable by other Bluetooth devices for a given number of seconds. A dialog box will always pop up asking the user if they want to allow this. If Bluetooth is not enabled on the device the user will be asked if they want it to be enabled.
The number of seconds to be discoverable by other Bluetooth devices. Seconds may be 0 to 300.
This code makes your device discoverable for 200 seconds then listens on channel 1 for a connection. Neither BTDiscoverable or BTListen pause execution, so additional code must be added to watch the BTState(n) to see if a connection has been made. See the BTListen command for instructions on listening for a connection.