GW12 Command syntax

From Glacsweb Wiki
Jump to: navigation, search

command syntax for ascii cmds to nodes

to avoid terrible bugs....

generic structure of a cmd is:


cmd DID par1 par2 par3

where DID is the DESTINATION ID of the node the command is sent to

return format is:

returned data if any
# non data messages
OK or FAIL

an example is:

addroute 30 35 2

returns

# addroute on node 30 for ID 35 on channel 2
OK

or some failure (maybe message failed to send etc)

# 868 radio failed
# addroute failed
FAIL
status 30

returns

3.7 200 50
# BattV 3.7
# Error 200
# BatV errors %diskfull
OK