Sets the new destination channel ID for the current connection.
Syntax |
setDchId(byte id): byte |
---|---|
id |
New destination channel ID |
Result |
Returns previous destination channel ID |
For more information on the destination channel ID, see the BCC/31 protocol documentation and the Destination ID Table.
Usage Example.
To send commands to a user R3 program, a different destination channel ID must be set, then send the desired commands.
bccmsg cmd, asw byte oldDch oldDch = setDchId(dchRteUserF). if(command(@cmd, @asw)) ; TODO: end setDchId(oldDch) |