Address of the device.
Unique identifier for the device.
Connects the device with the bluetooth network. Returns a promise that resolves with the connected device or rejects with an error if the connection could not established.
Id of the read characteristic
Id of the write characteristic
Connected device
Disconnects the devilce from the bluetooth network. Returns a promise that resolves the disconnected device or rejects with an error if the disconnection fails.
Disconnected device
Adds a listener to the device that invokes if the device receives any data. The data is represented as a byte buffer.
Listener for data events
The events data
Writes data represented as byte buffer to a device. Returns a promise that resolves after the data has been written successfully to the device or returns an error if the write was not successful.
Data to send as byte Buffer
State of successful write
Generated using TypeDoc
Represents a bluetooth device.
1.0.0