mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-08 12:36:52 +03:00
Added CPU temperature to MQTT.
This commit is contained in:
@@ -170,6 +170,9 @@ bool ClassFlowMQTT::doFlow(string zwtime)
|
|||||||
sprintf(rssi, "%d", get_WIFI_RSSI());
|
sprintf(rssi, "%d", get_WIFI_RSSI());
|
||||||
MQTTPublish(zw, rssi, SetRetainFlag);
|
MQTTPublish(zw, rssi, SetRetainFlag);
|
||||||
|
|
||||||
|
zw = maintopic + "/" + "CPUtemp";
|
||||||
|
std::string cputemp = std::to_string(temperatureRead());
|
||||||
|
MQTTPublish(zw, cputemp, SetRetainFlag);
|
||||||
|
|
||||||
if (flowpostprocessing)
|
if (flowpostprocessing)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user