Trigger other services on PPS activity
Commands sent to the /pps/services/ppsnetd/control object are of the form:
msg::command_string\nid::ID_number\ndat:json:{JSON_data}
Responses always reflect the command_string and ID_number that were sent in the message, along with any errors:
res::command_string\nid::ID_number\ndat:json:{JSON_data}\nerr::errno_number\nerrstr::error_description
msg:: | id:: | dat:json: |
---|---|---|
watch | Number | {"object":"<path_to_object>","exec":"<path_to_executable>"} |
start | Number | n/a |
stop | Number | n/a |
res:: | id:: | dat:json: | err:: | errstr:: |
---|---|---|---|---|
command (watch, start, or stop) | Number (whatever was sent in id::) | n/a | errno_number | as appropriate |