none
TypeError: transportCtor is not a constructor RRS feed

  • Question

  • Hi Team,

                I am trying to Connect and transmit message to IOThub using node.js. But while connecting am facing the issue "TypeError: transportCtor is not a constructor". Kindly assist me on the same

    Here is the package i have installed

      "azure-iot-device": "^1.17.0", "azure-iot-device-amqp": "^1.13.0"

    and the code is

     var connstring = "my connection string ";

      var client = Client.fromConnectionString(connstring);
          client.open(function (err) {
            if (err) {
              console.log(err.message)
            } else {
              console.log("client connected");
            }
          });


    Thanks,

    Bharani

    Thursday, July 16, 2020 1:39 PM