(2020-11-10, 09:03 AM)tkurki Wrote: I can relate to the frustration, but calling other peopls's software s*** is not the best way to get help.
Despite that here goes....
Your post title is misleading: UDP and MQTT don't have practically anything to do with each other. Please think about others who are reading what you write, maybe much later - you are adding confusion.
Your first example seems to be sending UDP to itself as it uses localIP.
Here's a real life ESP8266 example to send SK over UDP that you can adapt: https://gist.github.com/tkurki/d8d45dfb3...1e8e95a45b
Netcat is a great way to test that your messages make to the server - points for sharing that!
SK Server does not accept UDP input by default, you need to add a Data Connection:
- Data type: Signal K
- Signal K Source. UDP
I agree with your comment but this is still very frustrating and I’ve been reading countless of other forums and no clear solutions are available for a beginner like me. It’s all “here is my code” stuff and it doesn’t help much if you are a hobby programmer.
As for the title I was uncertain about going the Udo or mqtt path and hence why they were both included. At the time I was trying micropython and mqtt which honestly no-one should touch if you are a beginner.
So, since my UDP is working is there something I can do on the server/Openplotter side to get this into SignalK? Can node red help with this? And how do I do it?
When you say add a data connection, do you mean in KPLEX? I have tried that it didn’t work..
Kind regards,
Peter
ps: once I get this solved I’ll make a clear step by step guide for anyone to use in the future