I have been working on a project in which i send data from photon to bluemix cloud through an MQTT broker, specifically mosquitto.
I am using the MQTT library available on particle build.
there is a client.connect function which i typed in as,
where the server is my IP address
Despite looking at several examples online and through forum posts, i am still unable to compile the code. The error i am getting is as follows;
mqtttest.cpp:37:77: error: no matching function for call to ‘MQTT::connect(const char , int)’
i do not understand where i am going wrong. I have gotten mosquitto to listen to port 1883 but there is nothing being transmitted to it.
Please do help me through this problem and i apologise if this sounds amateurish.
Thank you so much.