Readonly
busGets the bus this device belongs to
Readonly
eventGets a counter of event emit calls.
Gets a counter map from events to new listener counts
Readonly
nodeGets an internal unique node identifier, mostly used for debugging.
Gets a counter for the CHANGE
event.
Gets the device short name
Gets a unique identifier for this device in the bus
Gets the short id of the device
Gets a databag to store custom information
Identifies node as a device
Gets the device short name
Gets the device short identifier
Unregisters a handler for one or more events
name or names of the events to subscribe
handler to unregister
current object instance
Registers a handler for one or more events
name or names of the events to subscribe
handler to register
current object instance
Registers a handler for one or more events to run only once.
name or names of the events to subscribe
handler to execute
current object instance
Subscribes to an event and returns the unsubscription handler
Subscribes to an event and returns the unsubscription handler
JDOM
Readonly
deviceGets the device identifier
Gets the control announce flag from the annouce packet.
Returns the firmware version synchronously. If needed, tries to refresh the value in the background.
Indicates if the device is announced as a client
Gets the number of packets sent since the last announce packet, as read from the announce packet.
Returns the product identifier synchronously. If needed, tries to refresh the value in the background.
Gets the restart counter from the announce packet.
Gets a controller for the status light. Returns undefined if the device does not support a status light.
Gets the status light announce flags from the announce packet.
Gets the elapsed time since boot in milli-seconds
Readonly
statsQuality of service statistics for this device
Gets the firmware information if any.
Firmware updater, defined if a firmware update is in progress
Sets the flashing sequence state
Indicates if the device is connected to a bus
Timestamp of the last packet received from the device
Timestamp of the last service update packet received from the device
Indicates if service information is available. This happens after a announce packet has been received.
Gets the number of events received by the service clients in this device
Indicates the device should be identifying.
Indicates if no packet from this device has been observed in a while.
Readonly
createdTimestamp when the device was first seen
Gets a random device id for the lifetime of this object.
Indicates if the device is a unique brain
Indicates if the device is in proxy mode
Awaits an event with a timeout. Throws JacdacError with timeout if operation does not return.
Optional
token: JDCancellationTokenIndicates if the service is in bootloader mode
Gets the list of service classes
Gets the number of services hosted by the device
Gets a filtered list of service clients.
Optional
options: ServiceFilterfilters for services
services matching the filter
Indicates if the devices is a physical device, not emulated.
Indicates if the device is part of a trace replay
Indicates the source of packets
Generated using TypeDoc
A Jacdac device hosting services.