Abstract
Instantiates a session with a Pixel. No attempt is made to connect to the die at this point.
The peripheral system id (as assigned by the OS).
Protected
Optional
_connPrivate
_lastProtected
Readonly
_systemGets the last known connection status.
Abstract
pixelGets the Pixel name.
It may be undefined until connected.
Gets the peripheral system id (as assigned by the OS).
Protected
_notifyAbstract
connectAbstract
disconnectAbstract
subscribeSubscribes to the "notify" characteristic and returns unsubscribe function.
The function to be called when the Pixel connection status changes.
Abstract
writeSends data to Pixel using the "write" characteristic
The raw data to send to the Pixel.
Optional
withoutResponse: booleanWhether or not to request the device to acknowledge having received the data.
Optional
timeoutMs: numberThe timeout in milliseconds before throwing an error when waiting for the device to acknowledgement.
Generated using TypeDoc
Represents a session with a Pixel die. This class is used to abstract the underlying platform used to connect to Pixels.