|
|
|
|
<btleDevice variable>.ConnectionStatus (Function) In french: <Variable btlePériphérique>.EtatConnexion Returns the current status of the connection to a Bluetooth Low Energy device or asks to be notified when the connection status changes. Remark: Bluetooth functions are not available in the Android emulator.
myDevice is btleDevice myDevice.Connect() ... SWITCH myDevice.ConnectionStatus() CASE btleStatusConnected // Process OTHER CASE ... END
Syntax
Finding out the current connection status Hide the details
<Result> = <Device>.ConnectionStatus()
<Result>: Integer constant Connection status: | | btleStatusConnected | The device is connected to the specified Bluetooth device. | btleStatusDisconnected | The device is not connected to the specified Bluetooth device. |
<Device>: btleDevice variable Name of the btleDevice variable corresponding to the device to use.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|