re-enabled mqtt cmd subscribe
This commit is contained in:
parent
0fa32d9b97
commit
d7e4984647
@ -58,7 +58,7 @@ void mqttLoop() {
|
|||||||
info("MQTT CONNECTED");
|
info("MQTT CONNECTED");
|
||||||
mqtt.setKeepAlive(10);
|
mqtt.setKeepAlive(10);
|
||||||
mqtt.setBufferSize(512);
|
mqtt.setBufferSize(512);
|
||||||
// mqtt.subscribe(cmdTopic);
|
mqtt.subscribe(cmdTopic);
|
||||||
mqtt.setCallback([](const char *topic, const uint8_t *bytes, const unsigned int length) {
|
mqtt.setCallback([](const char *topic, const uint8_t *bytes, const unsigned int length) {
|
||||||
char content[64];
|
char content[64];
|
||||||
if (length > sizeof content - 1) {
|
if (length > sizeof content - 1) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user