OpenMarine
MQTT to SignalK - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1)
+--- Forum: How do I...? (https://forum.openmarine.net/forumdisplay.php?fid=3)
+--- Thread: MQTT to SignalK (/showthread.php?tid=2474)



MQTT to SignalK - Screenshot - 2020-04-04

Hi, i'm trying to set up wireless sensors in my boat, and wanted to connect them to OpenPlotter using Wi-Fi. 
I am searching for the simplest (easiest) way to send the values of the sensors from the Arduino boards to the signal K server.

MQTT seems simple, I've created a depth topic on the pi for testing, and I send a value to this topic every second. 
I've set up the topic as a signal K Key (environment.depth), but nothing happens in signal K, the environment.depth value is not created in instrumentPanel... 

   


I'm just sending a number (also tried a sting) via MQTT, don't know if it's the right way to do it with signal K key. 

I'm not using OP2 yet, maybe things are simpler there...

Maybe MQTT is not the best tool but seemed simple. 

If you know what I'm doing wrong, or if you know a better way to transmit data using Wi-Fi to signal k, do not hesitate. 

Thanks


MQTT to SignalK - tkurki - 2020-04-04

Option 1: use https://github.com/SignalK/SensESP

Option 2: send sk delta messages over UDP, create an incoming UDP connection in SK server config


Sent from my iPhone using Tapatalk


RE: MQTT to SignalK - abarrow - 2020-04-04

UDP works pretty well, but I was never able to get SensESP to work on ESP32.

Here's what I did with UDP:
https://github.com/andyrbarrow/TankLevel
https://github.com/andyrbarrow/M5StickEngineTemp


RE: MQTT to SignalK - Screenshot - 2020-04-07

I tried sending sk updates via udp, works perfectly ! I'll give SenseESP a try, thanks a lot !
on an unrelated note, boy does OP2 run smooth on a pi4, night and day on openCPN with openGL enabled