mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-07 20:16:55 +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());
|
||||
MQTTPublish(zw, rssi, SetRetainFlag);
|
||||
|
||||
zw = maintopic + "/" + "CPUtemp";
|
||||
std::string cputemp = std::to_string(temperatureRead());
|
||||
MQTTPublish(zw, cputemp, SetRetainFlag);
|
||||
|
||||
if (flowpostprocessing)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user