This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
UDP MQTT to Openplotter with ESP32
#4
Updated my loop function should anyone be interested. The udp.print can send numbers - here it sends the time in seconds since it was turned on - every second...

Code:
void loop()
{
   delay(1000);
   //Send broadcast on port 3000
//    udp.broadcastTo("this is now working", 3000);
   Serial.println("Sending packages....    ");
   Serial.println(millis()/1000);
   udp.print(millis()/1000);
}
Now I know how to send the data - but how do I get it into SignalK or OpenCPN is the big question...
Reply


Messages In This Thread
UDP MQTT to Openplotter with ESP32 - by Peter— - 2020-11-09, 03:57 PM
RE: UDP MQTT to Openplotter with ESP32 - by Peter— - 2020-11-09, 07:39 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)