Send data to IOT Hub Azure
Home › Forums › Conduit: AEP Model › Send data to IOT Hub Azure
- This topic has 9 replies, 3 voices, and was last updated 7 years, 5 months ago by
Antonio Gonzalez.
-
AuthorPosts
-
September 22, 2017 at 12:39 am #20981
Antonio Gonzalez
ParticipantHi, 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-
This topic was modified 7 years, 7 months ago by
Antonio Gonzalez.
September 22, 2017 at 6:31 am #20984Jason Reiss
KeymasterDid you follow this guide?
See Using the MQTT protocol directly
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-mqtt-support
September 28, 2017 at 9:22 am #21018Antonio Gonzalez
ParticipantHi Jason,
Yes I tried to follow the guide, but not working.
also I follow this: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 0October 10, 2017 at 7:56 am #21153Antonio Gonzalez
ParticipantPlease…. I need support….
October 10, 2017 at 8:06 am #21154Jason Reiss
KeymasterNot 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?October 16, 2017 at 12:55 pm #21178Antonio Gonzalez
ParticipantHi 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……
October 19, 2017 at 6:05 am #21191Antonio Gonzalez
ParticipantPlease…
October 19, 2017 at 7:09 am #21192Jason Reiss
KeymasterLooks like mqtts is not available on Conduit.
Have you looked at using the REST API?
https://docs.microsoft.com/en-us/rest/api/iothub/November 6, 2017 at 7:16 am #21519Alexandros Rapsomanikis
ParticipantYou can try adding nodes to your Node-Red installation that support MQTT over SSL/TLS.
November 6, 2017 at 7:41 am #21523Antonio Gonzalez
ParticipantI 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)… -
This topic was modified 7 years, 7 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.