Hello @kl3m3n,
You are right, but i continue have a problem with RTC, the ddd show not the dayofweek. Have you a idea what it is wrong?
Thank You
void generateTheGUI {
getRtc = 0;
Serial.println("Create command RTC");
mqttClient.publish(&In[0], "|RTC UID:rtc1 HID:rtc\r\n");
app_on = 1;
}
Main loop {
//only one time
if ((app_on == 1) && (getRtc == 0)) {
//mqttClient.publish(&In[0], "@rtc1\n\r"); ////same output on Serial Monitor
//mqttClient.publish(&In[0], "@rtc1 RTCF:hh:mm:ss ddd RTCR:5.0\n\r"); //same output on Serial Monitor
mqttClient.publish(&In[0], "@rtc1 RTCF:'hh:mm:ss ddd' RTCR:1.5\n\r"); //same output on Serial Monitor
delay(150);
mqttClient.publish(&In[0], "@rtc1 RTCE:0\n\r"); //Disable RTC ??????????????
getRtc = 1;
delay(150);
}
}
void parseGuioMsg(const String &msg) {
if (msg.startsWith("@rtc1")) {
Serial.print("Show RTC ");
Serial.println(msg);
}
}
On Serial Monitor, a few times, like this...
Show RTC @rtc1 2025/07/07 22:32:31:696 dev:W 0001 x.x uuid:d3f1c986-16b3-47
End Parse
Show RTC @rtc1 2025/07/07 22:32:33:696 dev:W 0001 x.x uuid:d3f1c986-16b3-47
End Parse
Show RTC @rtc1 2025/07/07 22:32:34:694 dev:W 0001 x.x uuid:d3f1c986-16b3-47
End Parse