BleManager allows you to discover, connect and read data from BLE peripheral devices. This library is supported by iOS 7.1+.
StateChanged (State As Int) DeviceFound (Name As String, Id As String, AdvertisingData As Map, RSSI As Double) Disconnected Connected (Services As List) DataAvailable (Service As String, Characteristics As Map) WriteComplete (Characteristic As String, Success As Boolean)
Asynchronously reads the value of the specified characteristic. Note that you must call ReadData once before you can call this method. The DataAvailable will be raised when the data of this characteristic is available.
Starts scanning for devices. 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 monitors value changes. Note that you must call ReadData once before you can call this method. The DataAvailable method will be raised when the value of the characteristic changes. Service - The service id (as returned in the Connected event). Characteristic - The characteristic id (as returned in the DataAvailable event). Notify - True to add a listener, false to remove it.
StateAsInt [read only]
Returns the current state.
STATE_POWERED_OFFAsInt [read only]
STATE_POWERED_ONAsInt [read only]
STATE_RESETTINGAsInt [read only]
STATE_UNAUTHORIZEDAsInt [read only]
STATE_UNKNOWNAsInt [read only]
STATE_UNSUPPORTEDAsInt [read only]
Stops scanning for new devices.
Gets or sets the Tag object. This is a placeholder for any object you like to tie to this object.
Writes the data to the specified characteristic. You must call ReadData once and wait for the DataAvailable event before you can use this method. Note that this method does not raise any event. Service - The service id (as returned in the Connected event). Characteristic - The characteristic id (as returned in the DataAvailable event). Data - Data to write.