Send data to IOT Hub Azure

Home Forums Conduit: AEP Model Send data to IOT Hub Azure

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #20981
    Antonio Gonzalez
    Participant

    Hi, I´m new in Node-Red and in Conduit Gateway.
    I tried to install the Node developed in Node-red.org to send data to IOT HUB of Azure, but was not possible to install in my conduit…

    Also I tried to connect with MQTT node, but no good results….

    Please, Do you have an example to follow?.

    Thanks,
    Antonio

    #20984
    Jason Reiss
    Keymaster

    Did you follow this guide?

    See Using the MQTT protocol directly

    https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-mqtt-support

    #21018
    Antonio Gonzalez
    Participant

    Hi Jason,
    Yes I tried to follow the guide, but not working.
    also I follow this:
    http://www.multitech.net/developer/forums/topic/trouble-adding-new-node-to-node-red-to-connect-to-azure-iot-hub/

    but unsuccessfully…

    please, any idea to install the azure node?
    when I tried, I receive the following warnings and errors:

    admin@mtcdt:~# npm install -g node-red-contrib-azure-iot-hub
    npm WARN deprecated crypto@0.0.3: This package is no longer supported. It’s now a built-in Node module. If you’ve depended on crypto, you should switch to the o ne that’s built-in.
    npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
    npm WARN engine request@2.81.0: wanted: {“node”:”>= 4″} (current: {“node”:”0.10. 40″,”npm”:”1.4.28″})
    npm WARN engine hash-base@3.0.4: wanted: {“node”:”>=4″} (current: {“node”:”0.10. 40″,”npm”:”1.4.28″})
    npm WARN engine form-data@2.1.4: wanted: {“node”:”>= 0.12″} (current: {“node”:”0 .10.40″,”npm”:”1.4.28″})
    npm WARN engine har-validator@4.2.1: wanted: {“node”:”>=4″} (current: {“node”:”0 .10.40″,”npm”:”1.4.28″})
    npm WARN engine har-schema@1.0.5: wanted: {“node”:”>=4″} (current: {“node”:”0.10 .40″,”npm”:”1.4.28″})
    npm WARN engine co@4.6.0: wanted: {“iojs”:”>= 1.0.0″,”node”:”>= 0.12.0″} (curren t: {“node”:”0.10.40″,”npm”:”1.4.28″})
    npm ERR! EEXIST, open ‘/home/root/.npm/f005543e-eadable-stream-2-3-3-package-tgz .lock’
    File exists: /home/root/.npm/f005543e-eadable-stream-2-3-3-package-tgz.lock
    Move it away, and try again.

    npm ERR! System Linux 3.12.27r13
    npm ERR! command “node” “/usr/bin/npm” “install” “-g” “node-red-contrib-azure-io t-hub”
    npm ERR! cwd /home/root
    npm ERR! node -v v0.10.40
    npm ERR! npm -v 1.4.28
    npm ERR! path /home/root/.npm/f005543e-eadable-stream-2-3-3-package-tgz.lock
    npm ERR! code EEXIST
    npm ERR! errno 47
    npm ERR! not ok code 0

    #21153
    Antonio Gonzalez
    Participant

    Please…. I need support….

    #21154
    Jason Reiss
    Keymaster

    Not all npm nodes are able to be installed directly on Conduit using npm.
    Only nodes that are pure js, any c/c++ dependencies need to be cross-compiled into the system using mLinux.
    Even then they must have support for node.js installed on Conduit, the current hardware is limited to supporting up to node.js v0.10.40.

    I still think using MQTT to connect to the IOT hub will be your best option.

    What issues are you having with connecting with MQTT?
    Can you get it to work first with a PC install of node-red through MQTT?

    #21178
    Antonio Gonzalez
    Participant

    Hi Jason,
    I installed the version of node-red in im pc and I can connect perfectly.

    The issue, is the seeting are different to setup MQTT connection between the 0.17.5 ver installed in my pc and the ver of the conduict.

    The only difference is the flag “Enable secure(SSL/TLS) connection” is available in the ver 0.17.5.

    How I can solve?

    Please, your support……

    #21191
    Antonio Gonzalez
    Participant

    Please…

    #21192
    Jason Reiss
    Keymaster

    Looks like mqtts is not available on Conduit.

    Have you looked at using the REST API?
    https://docs.microsoft.com/en-us/rest/api/iothub/

    #21519

    You can try adding nodes to your Node-Red installation that support MQTT over SSL/TLS.

    #21523
    Antonio Gonzalez
    Participant

    I tried, but not working…
    I installed the nodes from the team of azure, but not appear in Node-RED after installed (I re-boot the gateway, but nothing)…

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.