Load the browser libraries
Events.js is required for immediate asynchronous readout events. Without it, use Agent API polling.
When the page is hosted on a different origin, identify the Neuron used for events and set the Agent API host:
Concentrator operations
The extension can:- get capabilities;
- list all/root/child data sources;
- test for and retrieve a node;
- list root and child nodes.
Sensor operations
Synchronous methods wait for the readout result:StartReadout... variants for asynchronous or fragmented reads. Supply a stable request ID and handle events until completion.
Concentrator-node read
Add the extended address:Robust event handling
- correlate on request ID;
- accept fragmented field batches;
- retain timestamps, units, quality flags, and node identity;
- stop only on completion/error;
- cancel abandoned readouts;
- ignore duplicates after reconnect;
- render device-provided names as untrusted text.