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) MtuChanged (Success As Boolean, MTU As Int)
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.
RequestMtu (MTUAsInt) AsBoolean
Requests to change the MTU size (packet size). The MtuChanged event will be raised. Should be called after a connection is established. Returns True if the request was sent successfully. Only available on Android 5+. Does nothing on older versions.
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. Returns True if successful. Service - The service id (as returned in the Connected event). Characteristic - The characteristic id. Notify - True to add a listener, false to remove it.