Sets the new destination ID for the current connection.
Syntax |
setDstId(byte id): byte |
---|---|
id |
New destination ID |
Result |
Returns previous destination ID |
For more information on the destination ID, see the BCC/31 protocol documentation and the Destination ID Table.
Usage Example.
To send commands to the network interface, and not to the connected device, a different destination ID must be set, then send the desired commands.
bccmsg cmd, asw saveid byte saveId = setDstId(dstNetwork). if(command(@cmd, @asw)) ; TODO: end setDstId(saveId) |