Skip to content

Bindings ​

Connect channel events to scripts and select allowed actions.

Add a binding ​

Under External communications → Bindings, add a binding. Select your channel and script, choose the event that should run it, and allow the actions the script will return.

What you want to doEventAllowed action
Reply to the device that sent a messageData received · onMessagereply
Decode an incoming report with a thing modelData received · onMessagething.parse
Send a meter read request from a device RPCCommand dispatch requested · onRpcRequestsend

For the first exchange, use the first row and leave the source filter and script parameters empty. To decode telemetry as well, allow thing.parse on the same binding. Supply the sample script's device_eui and thing_model_id parameters. The device must have that model assigned, and its parser must accept the report.

Which other events and send targets can I use?

Use onConnected when a TCP connection or serial port opens and onDisconnected when it closes. UDP uses datagrams and has no connection events. Use onTelemetry for device telemetry updates and filter by device EUI if multiple devices share a channel. Leave the source filter empty for incoming network frames that have no device identity yet.

For outbound messages, use configured_port for serial or configured_remote for a TCP or UDP client. On a TCP server, choose a live session from Runtime details. On a UDP server, choose an allowlisted address. If a script sends through another channel, also allow that target channel in the binding.

Enable the binding, then select Communication channels → Start. If you imported the configuration from another organization, check the site addresses, ports or serial path before starting it. Remote pull and startup

Poll a meter on a schedule ​

Bindings select the script that handles a read request or a meter reply. Choose the devices, RPC and polling schedule under Action → Device Action.