• 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/h­ello.txt", function(res) {
      res.on('data', function(data) {
        console.log("HTTP> "+data);
      });
      res.on('close', function(data) {
        console.log("Connection closed");
      });
    });
    
About

Avatar for sureshkm @sureshkm started