You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello and thank you for your often quick and helpful responses.
I need to better understand a command you use in the "temperature" example on a DIY sensor.
This is the one I would like to adapt to other sensors:
String msg = "{"model":"ESP32TEMP","id":"" + NodeId + "","tempc":" + String(temp) + "}";
1- I understand that this line sends a message to OMG so that it translates the sensor data into MQTT.
the "temp" variable comes from float.
But where does “tempc” come from?
Is this a “topic” that OMG can recognize?
If so, what other topics could we use?
For example to send a weight collected by HX711.
2- More generally, could you direct me to a doc so that I can learn how to form a "String msg" by myself without disturbing you.
A big thank you from France.
Jean Marc.
The text was updated successfully, but these errors were encountered:
Hello and thank you for your often quick and helpful responses.
I need to better understand a command you use in the "temperature" example on a DIY sensor.
This is the one I would like to adapt to other sensors:
String msg = "{"model":"ESP32TEMP","id":"" + NodeId + "","tempc":" + String(temp) + "}";
1- I understand that this line sends a message to OMG so that it translates the sensor data into MQTT.
But where does “tempc” come from?
Is this a “topic” that OMG can recognize?
If so, what other topics could we use?
For example to send a weight collected by HX711.
2- More generally, could you direct me to a doc so that I can learn how to form a "String msg" by myself without disturbing you.
A big thank you from France.
Jean Marc.
The text was updated successfully, but these errors were encountered: