Please enable JavaScript to view this site.

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)

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC