You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
Online Status
Sub:
nodes/:id/status
->
0
status_map = {
online: 0,
offline: 1,
neterror: 2
}
JSON-RPC
Send
Pub:
nodes/:id/rpc/send
->
{"jsonrpc": "2.0", "method": "subtract", "params": [42, 23], "id": "sdwc-1"}
Id must is the Unique id
Id must String
For sdwc:
Id:
sdwc-<unique_id>
Recv
Sub:
nodes/:id/rpc/recv
->
{"jsonrpc": "2.0", "result": 19, "id": "sdwc-1"}
Or
->
{"jsonrpc": "2.0", "error": {"code": -32601, "message": "Method not found"}, "id": "sdwc-1"}
Message
Sub:
nodes/:id/message
->
{"heartbeat": {"battery": {"remain": 99, "voltage": 48280}, "flight": {"status": 3, "speed": 0.08756901323795319, "mode": 0, "time": "111"}, "gps": {"satellites": 4, "lat": 226878281, "height": 2.669999837875366, "type": 3, "lon": 1142245713}}}
The text was updated successfully, but these errors were encountered: