PUT a delta over TCP/HTTP #27
-
Could anyone provide a simple example of updating a vessels position/heading etc via an HTTP put? I tried to so a PUT with raw JSON to this endpoint : /signalk/v1/api/ { but got: "input is missing a value"
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The specification is a little unclear on this and we should improve it. To send a new value you should send a delta over WebSocket. |
Beta Was this translation helpful? Give feedback.
-
Thanks, got it working! Simple little android app to transfer GPS -> signalK -> openCPN via a websocket. Works well as I don't have an NMEA setup on board and want to work with pure signalK as I kit out the boat. I figured we all have sensors in our pockets, might as well use the data! Was also an excuse to learn some Flutter. Appreciate the help, looking forward to being part of the community. |
Beta Was this translation helpful? Give feedback.
The specification is a little unclear on this and we should improve it.
To send a new value you should send a delta over WebSocket.
https://github.com/SignalK/signalk-server/wiki/FAQ:-Frequently-Asked-Questions#how-do-i-send-data-to-the-server