AbstractInstantiates 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).
Optionalname: stringGets the last known connection status.
Gets the Pixel name.
Gets the peripheral system id (as assigned by the OS).
Protected_notifyProtected_setAbstractconnectAbstractdisconnectAbstractdisposeSets the function to be called when the Pixel connection status changes.
OptionalconnectionStatusListener: ((ev: PixelSessionConnectionEvent) => void)The function called when the Pixel connection status changes.
AbstractsubscribeSubscribes to the "notify" characteristic and returns unsubscribe function.
The function to be called when the Pixel connection status changes.
AbstractwriteSends data to Pixel using the "write" characteristic
The raw data to send to the Pixel.
OptionalwithoutResponse: booleanWhether or not to request the device to acknowledge having received the data.
OptionaltimeoutMs: 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.