MakingThingsTalk2 icon indicating copy to clipboard operation
MakingThingsTalk2 copied to clipboard

MQTT needs .onMessage(callback);

Open hex705 opened this issue 5 years ago • 0 comments

April 2020 -- playing with :

MakingThingsTalk2/3rd_edition/chapter10/catCamDeux/AirConditionerArduino/AirConditionerArduino.ino

Could not receive MQQT messages until .onMessage(messageReceived); is added

end of setup looks like :

client.begin(mqttServerAddress, netSocket); client.onMessage(messageReceived); // ***** add this line mqttConnect();

s

hex705 avatar Apr 18 '20 17:04 hex705