-
Im trying to build an STM32 dev board-based battery monitor, to send battery values to an RPI signal k server via HTTP. I have an HTTP client running on the dev board and can do the GET endpoints, GET self, and POST login fine. Then when I try to send a delta to batteries/0/current (for example) I get a response (405 not allowed): If I use a web browser on my PC and try: And when I log into the server via web browser and open the "data browser" tab, there are no paths for electrical or anything else showing (like they show in the demo server). So I guess somewhere in the server I need to set up all these paths, so that I can send updates to them??? I've been through the documentation for hours and cannot see anything on how to set these paths up. I see in FAQ: So how do you create a path then set up a PUT handler for a path? Also, does this mean it is not possible to send something like battery data over HTTP? Any help with this would be very appreciated because this seems like a really simple thing I am missing and I feel a bit stupid at the moment! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Yes, you must use WebSockets to send deltas. |
Beta Was this translation helpful? Give feedback.
-
Thank you both for your replies. That makes sense now. |
Beta Was this translation helpful? Give feedback.
In the case of an anchor light, there would be a plugin or something that has registered to handle a PUT and would be sending deltas related to that path. Switching related plugins do this.
Your use case would not use PUT. You just need to report on the vale of something. You cant PUT to battery current just like you can't PUT to wind speed. We can't change the wind speed. Only report on it.
When you send a delta for a any path, it will show up in the server and in the data browser. They won't be there until something sends a delta.