API description - a4ng3l/hc GitHub Wiki

Gateway

Retrieving Gateway details by MAC address

End point Method Returns
/gateways/[mac address] GET MAC Address, Account, Gateway ID, User ID, RTPIP ID

Comments

Used in polling_svr to retrieve the gateway details before handling commands.

Sending command to a Gateway

End point Method Returns Description
/gateways/[id]/commands/[cmdid, action, sent, result, submissiontime, gwid] POST OK / NOK add a command to the queue
/gateways/[id]/commands/ GET action, cmdid return the commands available for that GW
/gateways/[id]/commands/[id] PATCH OK / NOK acknowledge a command has been processed by the GW