@ -120,7 +120,8 @@ void transmitStatus() {
char sensorBuf[root.measureLength()+1];
root.printTo(sensorBuf, sizeof(sensorBuf));
statusPacketIdSub = iot.mqtt.publish(bme280Topic.c_str(), 1, true, sensorBuf);
statusPacketIdSub = iot.mqtt.publish(bme280Topic.c_str(), 0, false, sensorBuf);
// statusPacketIdSub = iot.mqtt.publish(bme280Topic.c_str(), 1, true, sensorBuf);
}
@ -83,10 +83,10 @@ uint8_t MainMenu::select() {
return current_pos;
break;
case 2:
iot.mqtt.publish(topic.c_str(), 1, true, "light" );
iot.mqtt.publish(topic.c_str(), 0, false, "light" );
case 3:
iot.mqtt.publish(topic.c_str(), 1, true, "test2" );
iot.mqtt.publish(topic.c_str(), 0, false, "test2" );
case 4:
menuChange = eMainScreen;