This commit is contained in:
Chris Giacofei 2022-01-20 10:21:55 -05:00
parent 9818e77866
commit 24b3cdae1c

View File

@ -46,6 +46,7 @@ void MessageReceived(char* topic, byte* payload, unsigned int length) {
// Update PWM setpoint.
setting = cJSON_GetObjectItemCaseSensitive(monitor_json, "setpoint");
KettleDuty = setting->valueint;
cJSON_Delete(monitor_json);
}
}
@ -70,5 +71,6 @@ static void SendSensorData() {
mqtt_client.publish(topic, msg);
cJSON_Delete(monitor);
}