Sure, i will try.
But if i make HTTP request in the place of MQTT connect, I'm getting the HTTP response back from the server. The following code works
apServer.close() ...... require("http").get("http://pur3.co.uk/hello.txt", function(res) { res.on('data', function(data) { console.log("HTTP> "+data); }); res.on('close', function(data) { console.log("Connection closed"); }); });
@sureshkm started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Sure, i will try.
But if i make HTTP request in the place of MQTT connect, I'm getting the HTTP response back from the server. The following code works