2023-05-22
This commit is contained in:
parent
a8f9b38967
commit
27f859b86f
|
@ -147,7 +147,7 @@ void loop() {
|
|||
sprintf(msg,"%ld", Feldstaerke);
|
||||
sprintf(topic, "%s%s%s", "hjk/devices/", hostname.c_str(), "/telemetry/RSSI" );
|
||||
client.publish(topic, msg, true);
|
||||
sprintf(msg,"0x%0x", SystemStatus);
|
||||
sprintf(msg,"0x%02x", SystemStatus);
|
||||
sprintf(topic, "%s%s%s", "hjk/devices/", hostname.c_str(), "/telemetry/SystemStatus" );
|
||||
client.publish(topic, msg, true);
|
||||
client.loop();
|
||||
|
@ -162,7 +162,7 @@ void loop() {
|
|||
Pause = intervalLowBatt -((endTime - startTime) * 1000); // Pause ca. 60 Minuten
|
||||
Serial.println("AKKU entladen!");
|
||||
SystemStatus = (SystemStatus | AkkuLeer);
|
||||
Serial.printf("Systemstatus : 0x%02x \n", SystemStatus);
|
||||
Serial.printf("Systemstatus : 0x%04x \n", SystemStatus);
|
||||
writeSystemStatus();
|
||||
}
|
||||
else{
|
||||
|
|
Loading…
Reference in New Issue
Block a user