Readonly deviceGets the device this service 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 service name and parent names and service instance index
Gets the node identifier
Gets the service name
Gets a databag to store custom information
Gets the SERVICE_NODE_NAME identifier
Gets the service qualified name and service instance index
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 serviceGets the service class
Readonly serviceGets the service index in the service list
Gets the service instance name, if resolved
Gets the index of this service class instance. Provides a stable ordering into a list of services.
Awaits an event with a timeout. Throws JacdacError with timeout if operation does not return.
Optional token: JDCancellationTokenOptional timeout: numberGets the list of registers in the service
Optional options: { Optional ignorePacks values and sends command to the service server
packet to send
Optional values: TValuesunpacked values, layed as specified
Optional ack: booleanacknolegment required
Send packet to the service server
packet to send
Optional ack: booleanacknolegment required
Gets the intensity register associated to this service, if the specification supports it.
Gets the reading register associated to this service, if the specification supports it.
Gets the value register associated to this service, if the specification supports it.
Gets a register for the given code
register identifier as found in the specification
a register instance (if found in specifiaction)
Gets the specification of the service. Undefined if unknown
Generated using TypeDoc
A Jacdac service client hosting registers, events.