|
@ -120,7 +120,8 @@ void transmitStatus() { |
|
|
|
|
|
|
|
|
char sensorBuf[root.measureLength()+1]; |
|
|
char sensorBuf[root.measureLength()+1]; |
|
|
root.printTo(sensorBuf, sizeof(sensorBuf)); |
|
|
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);
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|