Feedback

Detect devices

Description

Detect all of the devices that are connected on the RS485 interface. Devices will identify themselves at a random time within one second. Chance of collision is possible but unlikely. You can repeat this if you suspect a collision (like if you have devices connected but they were not discovered within one to two seconds).

Inputs

None

Outputs

  1. u64 uniqueId: A unique ID (unique among all devices manufactured). The response is sent after a random delay of between 0 and 1 seconds.

  2. u8 alias: The alias of the device that has this unique ID.

Code examples

Log window

Choose a theme
Choose a theme