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).
Optional
name: stringGets the last known connection status.
Gets the Pixel name.
Gets the peripheral system id (as assigned by the OS).
Protected
_notifyProtected
_setAbstract
connectAbstract
disconnectAbstract
disposeSets the function to be called when the Pixel connection status changes.
Optional
connectionStatusListener: ((ev: PixelSessionConnectionEvent) => void)The function called when the Pixel connection status changes.
Abstract
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.
Represents a session with a Pixel die. This class is used to abstract the underlying platform used to connect to Pixels.