StateChanged (State As Int) DeviceFound (Name As String, DeviceId As String, AdvertisingData As Map, RSSI As Double) Disconnected Connected (Services As List) DataAvailable (ServiceId As String, Characteristics As Map) WriteComplete (Characteristic As String, Status As Int) RssiAvailable (Success As Boolean, RSSI As Double)
Asynchronously reads the value of the specified characteristic. The DataAvailable will be raised when the data of this characteristic is available.
Reads the RSSI value of a connected device. The RssiAvailable event will be raised when the value is available.
Starts scanning for devices. The DeviceFound event will be raised when a device is found. ServiceUUIDs - A list (or array) with service uuids. Devices that don't advertise these uuids will not be discovered. Pass Null to discover all devices.
Adds or removes a notification listener that monitor value changes. The DataAvailable event will be raised when the value of the characteristic changes. Service - The service id (as returned in the Connected event). Characteristic - The characteristic id. Notify - True to add a listener, false to remove it.