I am working with the photon and trying to send my data to an mqtt broker on amazon ec2. I am running into the following error:
/workspace/lib/MQTT/src/MQTT.cpp:83:18: error: ambiguous overload for ‘operator=’ (operand types are ‘String’ and ‘int’)
this->domain = NULL;
I have only imported the MQTT.h library and added #include <MQTT.h> into my .ino file in the Particle WebIDE. Is this due to some issue with the mqtt.h library? How can I fix it?
Hope to receive an answer soon. Thanks.