OpenMarine

Full Version: MQTT to SignalK
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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... 

[attachment=882]


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
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
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
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