Skip to content

Commit 88cc8c2

Browse files
authored
Merge pull request #86473 from pierreca/iothub-rpi-node-tutorial-fix
[iot-hub] Fix instructions for raspberry pi + Node SDK tutorial
2 parents 7ad0b85 + 721e694 commit 88cc8c2

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

articles/iot-hub/iot-hub-raspberry-pi-kit-node-get-started.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Use the breadboard and jumper wires to connect an LED and a BME280 to Pi as foll
130130

131131
![The Raspberry Pi and sensor connection](./media/iot-hub-raspberry-pi-kit-node-get-started/3-raspberry-pi-sensor-connection.png)
132132

133-
The BME280 sensor can collect temperature and humidity data. The LED blinks when the device sends a message to the cloud.
133+
The BME280 sensor can collect temperature and humidity data. The LED blinks when the device sends a message to the cloud.
134134

135135
For sensor pins, use the following wiring:
136136

@@ -165,8 +165,8 @@ Turn on Pi by using the micro USB cable and the power supply. Use the Ethernet c
165165
1. Connect to your Raspberry Pi with one of the following SSH clients from your host computer:
166166

167167
**Windows Users**
168-
169-
a. Download and install [PuTTY](https://www.putty.org/) for Windows.
168+
169+
a. Download and install [PuTTY](https://www.putty.org/) for Windows.
170170

171171
b. Copy the IP address of your Pi into the Host name (or IP address) section and select SSH as the connection type.
172172

@@ -187,10 +187,10 @@ Turn on Pi by using the micro USB cable and the power supply. Use the Ethernet c
187187
node -v
188188
```
189189

190-
If the version is lower than 11.x, or if there is no Node.js on your Pi, install the latest version.
190+
If the version is lower than 10.x, or if there is no Node.js on your Pi, install the latest version.
191191

192192
```bash
193-
curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash
193+
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash
194194
sudo apt-get -y install nodejs
195195
```
196196

@@ -204,7 +204,7 @@ Turn on Pi by using the micro USB cable and the power supply. Use the Ethernet c
204204

205205
```bash
206206
cd iot-hub-node-raspberrypi-client-app
207-
sudo npm install
207+
npm install
208208
```
209209

210210
> [!NOTE]
@@ -224,6 +224,8 @@ Turn on Pi by using the micro USB cable and the power supply. Use the Ethernet c
224224

225225
If you **don't have the sensor**, set the `simulatedData` value to `true` to make the sample application create and use simulated sensor data.
226226

227+
*Note: The i2c address used in this tutorial is 0x77 by default. Depending on your configuration it might also be 0x76: if you encounter an i2c error, try to change the value to 118 and see if that works better. To see what address is used by your sensor, run `sudo i2cdetect -y 1` in a shell on the raspberry pi*
228+
227229
2. Save and exit by typing Control-O > Enter > Control-X.
228230

229231
### Run the sample application

0 commit comments

Comments
 (0)