none
error at Connect Raspberry Pi to Azure IoT Hub RRS feed

  • Question

  • Hi,

    I am using https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-raspberry-pi-kit-node-get-started for connecting temp and humidity sensor to IoT Hub, but at "Run a sample application on Pi" section, step 4,  I get te following error:

    The folder contents are:

    I need help to complete the procedure to get the temp and humidity sensor up and running.

    Thanks in advance!

    Tuesday, October 9, 2018 9:09 PM

All replies

  • Hi,

    Today I am using "https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-raspberry-pi-kit-c-get-started". I am stucked at "Configure the sample application" section, step 2. When executing "sudo ./setup.sh" it is stucked at "Cloning into 'wiring Pi'":

    any help will be appreciated!

    Wednesday, October 10, 2018 6:50 PM
  • Hello ,

    It looks like you don't have NPM installed or it is not accessible.

    Did you checked the following prerequisites from the Tutorial?

    Thanks!

    Thursday, October 18, 2018 2:03 PM
    Moderator
  • Hi,

    What version to use? The article "https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-raspberry-pi-kit-node-get-started" states "Stretch", but the link is for Jessie.




    Thanks!


    • Edited by SCCMadmin09 Wednesday, October 31, 2018 2:03 PM screenshot
    Tuesday, October 30, 2018 3:26 PM
  • Hi,

    the following when using Stretch:

    pi@raspberrypi:~ $ cat /etc/os-release
    PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
    NAME="Raspbian GNU/Linux"
    VERSION_ID="9"
    VERSION="9 (stretch)"
    ID=raspbian
    ID_LIKE=debian
    HOME_URL="http://www.raspbian.org/"
    SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
    BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
    pi@raspberrypi:~ $ node -v
    -bash: node: command not found
    pi@raspberrypi:~ $ curl -sL http://deb.nodesource.com/setup_4.x | sudo -E bash

    ================================================================================
    ================================================================================

                                  DEPRECATION WARNING

      Node.js 4.x LTS Argon is no longer actively supported!

      You will not receive security or critical stability updates for this version.

      You should migrate to a supported version of Node.js as soon as possible.
      Use the installation script that corresponds to the version of Node.js you
      wish to install. e.g.

       * https://deb.nodesource.com/setup_8.x — Node.js 8 LTS "Carbon" (recommended)
       * https://deb.nodesource.com/setup_10.x — Node.js 10 Current

      Please see https://github.com/nodejs/Release for details about which
      version may be appropriate for you.

      The NodeSource Node.js distributions repository contains
      information both about supported versions of Node.js and supported Linux
      distributions. To learn more about usage, see the repository:
        https://github.com/nodesource/distributions

    ================================================================================
    ================================================================================

    Continuing in 20 seconds ...


    ## Installing the NodeSource Node.js 4.x LTS Argon repo...


    ## Populating apt-get cache...

    + apt-get update
    Get:1 http://archive.raspberrypi.org/debian stretch InRelease [25.3 kB]
    Get:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15.0 kB]
    Get:3 http://archive.raspberrypi.org/debian stretch/main armhf Packages [181 kB]
    Get:4 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages [11.7 MB]
    Get:5 http://archive.raspberrypi.org/debian stretch/ui armhf Packages [34.3 kB]
    Get:6 http://raspbian.raspberrypi.org/raspbian stretch/contrib armhf Packages [56.9 kB]
    Get:7 http://raspbian.raspberrypi.org/raspbian stretch/non-free armhf Packages [95.2 kB]
    Fetched 12.1 MB in 43s (276 kB/s)
    Reading package lists... Done

    ## Confirming "stretch" is supported...

    + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_4.x/dists/stretch/Release'

    ## Adding the NodeSource signing key to your keyring...

    + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
    OK

    ## Creating apt sources list file for the NodeSource Node.js 4.x LTS Argon repo...

    + echo 'deb https://deb.nodesource.com/node_4.x stretch main' > /etc/apt/sources.list.d/nodesource.list
    + echo 'deb-src https://deb.nodesource.com/node_4.x stretch main' >> /etc/apt/sources.list.d/nodesource.list

    ## Running `apt-get update` for you...

    + apt-get update
    Hit:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
    Hit:2 http://archive.raspberrypi.org/debian stretch InRelease
    Get:3 https://deb.nodesource.com/node_4.x stretch InRelease [4,647 B]
    Get:4 https://deb.nodesource.com/node_4.x stretch/main Sources [762 B]
    Get:5 https://deb.nodesource.com/node_4.x stretch/main armhf Packages [1,010 B]
    Fetched 6,419 B in 2s (3,120 B/s)
    Reading package lists... Done

    ## Run `sudo apt-get install -y nodejs` to install Node.js 4.x LTS Argon and npm
    ## You may also need development tools to build native addons:
         sudo apt-get install gcc g++ make
    ## To install the Yarn package manager, run:
         curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
         echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
         sudo apt-get update && sudo apt-get install yarn


    pi@raspberrypi:~ $ node -v
    -bash: node: command not found
    pi@raspberrypi:~ $

    Thanks in advance for any help!

    Tuesday, October 30, 2018 3:33 PM
  • Hi,

    The following when using Jessie:

    pi@raspberrypi:~ $ cat /etc/os-release
    PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
    NAME="Raspbian GNU/Linux"
    VERSION_ID="8"
    VERSION="8 (jessie)"
    ID=raspbian
    ID_LIKE=debian
    HOME_URL="http://www.raspbian.org/"
    SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
    BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
    pi@raspberrypi:~ $ node -v
    v0.10.29
    pi@raspberrypi:~ $ curl -sL http://deb.nodesource.com/setup_4.x | sudo -E bash

    ================================================================================
    ================================================================================

                                  DEPRECATION WARNING

      Node.js 4.x LTS Argon is no longer actively supported!

      You will not receive security or critical stability updates for this version.

      You should migrate to a supported version of Node.js as soon as possible.
      Use the installation script that corresponds to the version of Node.js you
      wish to install. e.g.

       * https://deb.nodesource.com/setup_8.x — Node.js 8 LTS "Carbon" (recommended)
       * https://deb.nodesource.com/setup_10.x — Node.js 10 Current

      Please see https://github.com/nodejs/Release for details about which
      version may be appropriate for you.

      The NodeSource Node.js distributions repository contains
      information both about supported versions of Node.js and supported Linux
      distributions. To learn more about usage, see the repository:
        https://github.com/nodesource/distributions

    ================================================================================
    ================================================================================

    Continuing in 20 seconds ...


    ## Installing the NodeSource Node.js 4.x LTS Argon repo...


    ## Populating apt-get cache...

    + apt-get update
    Get:1 http://mirrordirector.raspbian.org jessie InRelease [14.9 kB]
    Get:2 http://archive.raspberrypi.org jessie InRelease [22.9 kB]
    Get:3 http://mirrordirector.raspbian.org jessie/main armhf Packages [9,537 kB]
    Get:4 http://archive.raspberrypi.org jessie/main armhf Packages [171 kB]
    Get:5 http://archive.raspberrypi.org jessie/ui armhf Packages [58.9 kB]
    Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
    Ign http://archive.raspberrypi.org jessie/main Translation-en
    Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
    Ign http://archive.raspberrypi.org jessie/ui Translation-en
    Get:6 http://mirrordirector.raspbian.org jessie/contrib armhf Packages [43.3 kB]
    Get:7 http://mirrordirector.raspbian.org jessie/non-free armhf Packages [84.2 kB]
    Get:8 http://mirrordirector.raspbian.org jessie/rpi armhf Packages [1,356 B]
    Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
    Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
    Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
    Ign http://mirrordirector.raspbian.org jessie/main Translation-en
    Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
    Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
    Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
    Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
    Fetched 9,934 kB in 2min 13s (74.5 kB/s)
    Reading package lists... Done

    ## You seem to be using Devuan version jessie.
    ## This maps to Debian "jessie"... Adjusting for you...

    ## Confirming "jessie" is supported...

    + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_4.x/dists/jessie/Release'

    ## Adding the NodeSource signing key to your keyring...

    + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
    OK

    ## Creating apt sources list file for the NodeSource Node.js 4.x LTS Argon repo...

    + echo 'deb https://deb.nodesource.com/node_4.x jessie main' > /etc/apt/sources.list.d/nodesource.list
    + echo 'deb-src https://deb.nodesource.com/node_4.x jessie main' >> /etc/apt/sources.list.d/nodesource.list

    ## Running `apt-get update` for you...

    + apt-get update
    Hit http://mirrordirector.raspbian.org jessie InRelease
    Hit http://archive.raspberrypi.org jessie InRelease
    Get:1 https://deb.nodesource.com jessie InRelease [4,646 B]
    Get:2 https://deb.nodesource.com jessie/main Sources [762 B]
    Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
    Hit http://archive.raspberrypi.org jessie/main armhf Packages
    Get:3 https://deb.nodesource.com jessie/main armhf Packages [1,008 B]
    Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
    Hit http://archive.raspberrypi.org jessie/ui armhf Packages
    Get:4 https://deb.nodesource.com jessie/main Translation-en_GB [162 B]
    Get:5 https://deb.nodesource.com jessie/main Translation-en [162 B]
    Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
    Get:6 https://deb.nodesource.com jessie/main Translation-en_GB [162 B]
    Get:7 https://deb.nodesource.com jessie/main Translation-en [162 B]
    Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
    Get:8 https://deb.nodesource.com jessie/main Translation-en_GB [162 B]
    Get:9 https://deb.nodesource.com jessie/main Translation-en [162 B]
    Get:10 https://deb.nodesource.com jessie/main Translation-en_GB [162 B]
    Get:11 https://deb.nodesource.com jessie/main Translation-en [162 B]
    Get:12 https://deb.nodesource.com jessie/main Translation-en_GB [162 B]
    Ign https://deb.nodesource.com jessie/main Translation-en_GB
    Get:13 https://deb.nodesource.com jessie/main Translation-en [162 B]
    Ign https://deb.nodesource.com jessie/main Translation-en
    Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
    Ign http://archive.raspberrypi.org jessie/main Translation-en
    Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
    Ign http://archive.raspberrypi.org jessie/ui Translation-en
    Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
    Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
    Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
    Ign http://mirrordirector.raspbian.org jessie/main Translation-en
    Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
    Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
    Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
    Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
    Fetched 6,416 B in 18s (348 B/s)
    Reading package lists... Done

    ## Run `sudo apt-get install -y nodejs` to install Node.js 4.x LTS Argon and npm
    ## You may also need development tools to build native addons:
         sudo apt-get install gcc g++ make
    ## To install the Yarn package manager, run:
         curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
         echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
         sudo apt-get update && sudo apt-get install yarn


    pi@raspberrypi:~ $ node -v
    v0.10.29
    pi@raspberrypi:~ $ sudo apt-get -y install nodejs
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
      libc-ares2 libv8-3.14.5
    Use 'apt-get autoremove' to remove them.
    The following packages will be REMOVED:
      nodejs-legacy nodered
    The following packages will be upgraded:
      nodejs
    1 upgraded, 0 newly installed, 2 to remove and 200 not upgraded.
    Need to get 7,435 kB of archives.
    After this operation, 30.8 MB of additional disk space will be used.
    Get:1 https://deb.nodesource.com/node_4.x/ jessie/main nodejs armhf 4.9.1-1nodesource1 [7,435 kB]
    Fetched 7,435 kB in 49s (151 kB/s)
    Reading changelogs... Done
    (Reading database ... 115401 files and directories currently installed.)
    Removing nodered (0.15.3) ...
    Removing nodejs-legacy (0.10.29~dfsg-2) ...
    Processing triggers for gnome-menus (3.13.3-6) ...
    Processing triggers for desktop-file-utils (0.22-1) ...
    Processing triggers for mime-support (3.58) ...
    Processing triggers for gnome-icon-theme (3.12.0-1) ...
    Processing triggers for man-db (2.7.5-1~bpo8+1) ...
    (Reading database ... 107568 files and directories currently installed.)
    Preparing to unpack .../nodejs_4.9.1-1nodesource1_armhf.deb ...
    Unpacking nodejs (4.9.1-1nodesource1) over (0.10.29~dfsg-2) ...
    Processing triggers for man-db (2.7.5-1~bpo8+1) ...
    Setting up nodejs (4.9.1-1nodesource1) ...
    pi@raspberrypi:~ $ node -v
    v4.9.1
    pi@raspberrypi:~ $ git clone https://github.com/Azure-Samples/iot-hub-node-raspberrypi-client-app
    Cloning into 'iot-hub-node-raspberrypi-client-app'...
    remote: Enumerating objects: 73, done.
    remote: Total 73 (delta 0), reused 0 (delta 0), pack-reused 73
    Unpacking objects: 100% (73/73), done.
    Checking connectivity... done.
    pi@raspberrypi:~ $ cd iot-hub-node-raspberrypi-client-app
    pi@raspberrypi:~/iot-hub-node-raspberrypi-client-app $ sudo npm install
    npm WARN package.json iot-hub-node-raspberrypi-client-app@1.0.0 No repository field.
    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 one that's built-in.

    > wiring-pi@2.2.1 install /home/pi/iot-hub-node-raspberrypi-client-app/node_modules/wiring-pi
    > /bin/bash ./install.sh

    done.ng libWiringPi ... |
    patching file ./wiringpi/devLib/Makefile
    Hunk #1 succeeded at 24 with fuzz 1 (offset -2 lines).
    Hunk #2 succeeded at 32 with fuzz 2 (offset -2 lines).
    patching file ./wiringpi/gpio/Makefile
    done.g libWiringPi ... -
    done.g devLib .../
    done.alling gpio utility ... /
    done.g gpio utility ... -
    done.lling gpio utility ... -
    gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/4.9.1"
    gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/pi/iot-hub-node-raspberrypi-client-app/node_modules/wiring-pi/.node-gyp"
    make: Entering directory '/home/pi/iot-hub-node-raspberrypi-client-app/node_modules/wiring-pi/build'
      CXX(target) Release/obj.target/wiringPi/src/addon.o
      CXX(target) Release/obj.target/wiringPi/src/wiringPi.o
      CXX(target) Release/obj.target/wiringPi/src/softPwm.o
      CXX(target) Release/obj.target/wiringPi/src/softServo.o
      CXX(target) Release/obj.target/wiringPi/src/softTone.o
      CXX(target) Release/obj.target/wiringPi/src/wiringPiI2C.o
      CXX(target) Release/obj.target/wiringPi/src/wiringPiSPI.o
      CXX(target) Release/obj.target/wiringPi/src/wiringSerial.o
      CXX(target) Release/obj.target/wiringPi/src/wiringShift.o
      CXX(target) Release/obj.target/wiringPi/src/wiringPiISR.o
      CXX(target) Release/obj.target/wiringPi/src/wpi.o
      CXX(target) Release/obj.target/wiringPi/src/extensions/extensions.o
      CXX(target) Release/obj.target/wiringPi/src/extensions/drcSerial.o
      CXX(target) Release/obj.target/wiringPi/src/extensions/max5322.o
      CXX(target) Release/obj.target/wiringPi/src/extensions/max31855.o
      CXX(target) Release/obj.target/wiringPi/src/extensions/mcp23s08.o
      CXX(target) Release/obj.target/wiringPi/src/extensions/mcp23s17.o
      CXX(target) Release/obj.target/wiringPi/src/extensions/mcp3002.o
      CXX(target) Release/obj.target/wiringPi/src/extensions/mcp3004.o
      CXX(target) Release/obj.target/wiringPi/src/extensions/mcp3422.o
      CXX(target) Release/obj.target/wiringPi/src/extensions/mcp4802.o
      CXX(target) Release/obj.target/wiringPi/src/extensions/mcp23008.o
      CXX(target) Release/obj.target/wiringPi/src/extensions/mcp23016.o
      CXX(target) Release/obj.target/wiringPi/src/extensions/mcp23017.o
      CXX(target) Release/obj.target/wiringPi/src/extensions/pcf8574.o
      CXX(target) Release/obj.target/wiringPi/src/extensions/pcf8591.o
      CXX(target) Release/obj.target/wiringPi/src/extensions/sn3218.o
      CXX(target) Release/obj.target/wiringPi/src/extensions/sr595.o
      CXX(target) Release/obj.target/wiringPi/src/extensions/pca9685.o
      CXX(target) Release/obj.target/wiringPi/src/extensions/dac7678.o
      CXX(target) Release/obj.target/wiringPi/src/devlib/devlib.o
      CXX(target) Release/obj.target/wiringPi/src/devlib/ds1302.o
      CXX(target) Release/obj.target/wiringPi/src/devlib/gertboard.o
      CXX(target) Release/obj.target/wiringPi/src/devlib/lcd.o
      CXX(target) Release/obj.target/wiringPi/src/devlib/lcd128x64.o
      CXX(target) Release/obj.target/wiringPi/src/devlib/maxdetect.o
      CXX(target) Release/obj.target/wiringPi/src/devlib/piFace.o
      CXX(target) Release/obj.target/wiringPi/src/devlib/piGlow.o
      CXX(target) Release/obj.target/wiringPi/src/devlib/piNes.o
      CXX(target) Release/obj.target/wiringPi/src/devlib/tcs34725.o
      SOLINK_MODULE(target) Release/obj.target/wiringPi.node
      COPY Release/wiringPi.node
    make: Leaving directory '/home/pi/iot-hub-node-raspberrypi-client-app/node_modules/wiring-pi/build'
    done.
    Enjoy !
    npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.

    > i2c-bus@1.2.5 install /home/pi/iot-hub-node-raspberrypi-client-app/node_modules/bme280-sensor/node_modules/i2c-bus
    > node-gyp rebuild

    gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/4.9.1"
    gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/pi/iot-hub-node-raspberrypi-client-app/node_modules/bme280-sensor/node_modules/i2c-bus/.node-gyp"
    make: Entering directory '/home/pi/iot-hub-node-raspberrypi-client-app/node_modules/bme280-sensor/node_modules/i2c-bus/build'
      CXX(target) Release/obj.target/i2c/src/i2c.o
      SOLINK_MODULE(target) Release/obj.target/i2c.node
      COPY Release/i2c.node
    make: Leaving directory '/home/pi/iot-hub-node-raspberrypi-client-app/node_modules/bme280-sensor/node_modules/i2c-bus/build'
    azure-iot-device-mqtt@1.1.7 node_modules/azure-iot-device-mqtt
    ├── debug@2.6.9 (ms@2.0.0)
    ├── es5-shim@4.5.12
    ├── azure-iot-common@1.1.5 (crypto@0.0.3)
    └── mqtt@1.14.1 (inherits@2.0.3, reinterval@1.1.0, xtend@4.0.1, minimist@1.2.0, commist@1.0.0, readable-stream@1.0.34, mqtt-connection@2.1.1, end-of-stream@1.4.1, pump@1.0.3, concat-stream@1.6.2, split2@2.2.0, mqtt-packet@3.5.0, websocket-stream@3.3.3, help-me@1.1.0)

    wiring-pi@2.2.1 node_modules/wiring-pi

    azure-iot-device@1.1.7 node_modules/azure-iot-device
    ├── azure-iot-http-base@1.1.5
    ├── traverse@0.6.6
    ├── debug@2.6.9 (ms@2.0.0)
    ├── es5-shim@4.5.12
    ├── azure-iot-common@1.1.5 (crypto@0.0.3)
    ├── azure-storage@2.10.2 (browserify-mime@1.2.9, underscore@1.8.3, extend@3.0.2, uuid@3.3.2, xmlbuilder@9.0.7, readable-stream@2.0.6, md5.js@1.3.4, json-edm-parser@0.1.2, validator@9.4.1, xml2js@0.2.8, request@2.88.0)
    ├── machina@2.0.2 (lodash@3.10.1)
    └── lodash@4.17.11

    az-iot-bi@0.1.20 node_modules/az-iot-bi
    ├── macaddress@0.2.9
    ├── readline-sync@1.4.9
    ├── pkginfo@0.4.1
    ├── applicationinsights@0.17.2
    ├── user-home@2.0.0 (os-homedir@1.0.2)
    ├── execa@0.5.1 (strip-eof@1.0.0, p-finally@1.0.0, is-stream@1.1.0, signal-exit@3.0.2, npm-run-path@2.0.2, get-stream@2.3.1, cross-spawn@4.0.2)
    ├── async@2.6.1 (lodash@4.17.11)
    └── getos@2.8.4 (async@2.1.4)

    eslint@3.19.0 node_modules/eslint
    ├── path-is-inside@1.0.2
    ├── imurmurhash@0.1.4
    ├── natural-compare@1.4.0
    ├── estraverse@4.2.0
    ├── strip-bom@3.0.0
    ├── is-resolvable@1.1.0
    ├── strip-json-comments@2.0.1
    ├── pluralize@1.2.1
    ├── ignore@3.3.10
    ├── globals@9.18.0
    ├── esquery@1.0.1
    ├── esutils@2.0.2
    ├── progress@1.1.8
    ├── doctrine@2.1.0
    ├── text-table@0.2.0
    ├── user-home@2.0.0 (os-homedir@1.0.2)
    ├── babel-code-frame@6.26.0 (js-tokens@3.0.2)
    ├── debug@2.6.9 (ms@2.0.0)
    ├── optionator@0.8.2 (fast-levenshtein@2.0.6, type-check@0.3.2, wordwrap@1.0.0, deep-is@0.1.3, prelude-ls@1.1.2)
    ├── levn@0.3.0 (type-check@0.3.2, prelude-ls@1.1.2)
    ├── json-stable-stringify@1.0.1 (jsonify@0.0.0)
    ├── require-uncached@1.0.3 (resolve-from@1.0.1, caller-path@0.1.0)
    ├── chalk@1.1.3 (escape-string-regexp@1.0.5, supports-color@2.0.0, ansi-styles@2.2.1, strip-ansi@3.0.1, has-ansi@2.0.0)
    ├── mkdirp@0.5.1 (minimist@0.0.8)
    ├── concat-stream@1.6.2 (buffer-from@1.1.1, inherits@2.0.3, typedarray@0.0.6, readable-stream@2.3.6)
    ├── glob@7.1.3 (inherits@2.0.3, path-is-absolute@1.0.1, fs.realpath@1.0.0, once@1.4.0, inflight@1.0.6, minimatch@3.0.4)
    ├── inquirer@0.12.0 (strip-ansi@3.0.1, ansi-regex@2.1.1, ansi-escapes@1.4.0, cli-width@2.2.0, rx-lite@3.1.2, through@2.3.8, figures@1.7.0, run-async@0.1.0, string-width@1.0.2, readline2@1.0.1, cli-cursor@1.0.2)
    ├── is-my-json-valid@2.19.0 (jsonpointer@4.0.1, xtend@4.0.1, is-my-ip-valid@1.0.0, generate-object-property@1.2.0, generate-function@2.3.1)
    ├── espree@3.5.4 (acorn@5.7.3, acorn-jsx@3.0.1)
    ├── file-entry-cache@2.0.0 (object-assign@4.1.1, flat-cache@1.3.0)
    ├── js-yaml@3.12.0 (esprima@4.0.1, argparse@1.0.10)
    ├── shelljs@0.7.8 (interpret@1.1.0, rechoir@0.6.2)
    ├── table@3.8.3 (slice-ansi@0.0.4, ajv-keywords@1.5.1, string-width@2.1.1, ajv@4.11.8)
    ├── escope@3.6.0 (esrecurse@4.2.1, es6-map@0.1.5, es6-weak-map@2.0.2)
    └── lodash@4.17.11

    bme280-sensor@0.1.6 node_modules/bme280-sensor
    └── i2c-bus@1.2.5 (bindings@1.3.0, nan@2.8.0)

    pi@raspberrypi:~/iot-hub-node-raspberrypi-client-app $ sudo node index.js 'HostName=MYIOT.azure-devices.net;DeviceId=IoTDevice01;SharedAccessKey=xxxxxxxxxxxxxxxx'
    Unable to determine hardware version. I see: Hardware   : BCM2835
    ,
     - expecting BCM2708 or BCM2709. Please report this to projects@drogon.net
    pi@raspberrypi:~/iot-hub-node-raspberrypi-client-app $

    Thanks in advance for any help!

    Tuesday, October 30, 2018 4:49 PM
  • Hi,

    after executing"sudo apt-get install rpi-update" and "sudo rpi-update 1e84c2891c1853a3628aed59c06de0315d13c4f1"

    the following error:

    Found BMx280 chip ID 0x60 on bus i2c-1, address 0x77
    [IoT hub Client] Connect error: mqtt.js returned premature close error.

    Thanks!

    Tuesday, October 30, 2018 7:59 PM
  • Hi,

    Can we move this issue under the documentation github issues? Currently we have 4 opened issues for that tutorial. And I would like to assign it to the proper Engineer there. Just click on Content feedback at the bottom of the doc to open a new issue.

    

    My immediate suggestion is that you try using a later version: https://github.com/nodesource/distributions

    For ex version 8:

    # Using Debian, as root
    curl -sL https://deb.nodesource.com/setup_8.x | bash -
    apt-get install -y nodejs

    Thank you!

    Friday, November 2, 2018 4:58 PM
    Moderator