Readonly
devicethe device catalog
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 bus name
Gets a unique identifier for this node in the Jacdac DOM.
Gets the bus name
Gets a databag to store custom information
Returns the BUS_NODE_NAME
Gets the bus name
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
statsGets an instance that tracks packet statistics
Gets the current desired minimum logger verbosity on the bus
Sets the current desired minimum logger verbosity on the bus
Gets the list of known firmware blobs
Sets the list of known firmware blobs
Creates the bus with the given transport
Optional
transports: Transport[]Optional
options: BusOptionsIndicates that this bus acts as a client device
Sets the client state
Indicates if any of the transports is connected. Some transports might be in the process of connecting or disconnecting.
Indicates if the bus is a dashboard
Indicates if the device list if currently frozen.
Indicates if any of the transports is disconnected. Some transports might be in the process of connecting or disconnecting.
Do not send any packet on the bus
Sets the passive state. A passive bus does not send any packets.
Indicates that the bus is sending commands keep devices in bootloader mode. This property is signaled by CHANGE.
Turn on or off the safe boot mode where the bus keeps devices in bootloader mode. Triggers a CHANGE event.
Indicates if the bus should force all sensors to stream
Sets automatic streaming on and off
Automatically try to connect to detected devices
Sets the auto-connected mode
Determines how the bus interacts with services, including automatic polling of registers
Sets how the bus interacts with services, including automatic polling of registers
Indicates if reset in broadcast packets should be sent
Turns on or off reset in broadcast packets
Indicates if the bus is announcing and managing packets
Gets the current list of service specifications
Awaits an event with a timeout. Throws JacdacError with timeout if operation does not return.
Optional
token: JDCancellationTokenUpdates the current list of device and clears the bus
Specifies the current role manager
Readonly
schedulerA timer and interval schedular to orchestrate bus timestamps
Gets the current bus-relavite time in milliseconds
Indicates if registers are automatically refreshed in the background.
Enables or disables automatically refreshing registers in the background.
true to automatically refresh registers
Gets the default role manager service client, if any
Adds the service provider to the bus and returns the associated devoce
instance to add
Gets the current list of known devices on the bus
Optional
options: DeviceFilterGet a service providers for a given device
Removes the service provider from the bus
instance to remove
Gets the current list of service providers on the bus
Gets the current list of services from all the known devices on the bus
Optional
options: ServiceFilter & DeviceFilterGets the list of transports registers with the bus
Generated using TypeDoc
A Jacdac bus manager. This instance maintains the list of devices on the bus.