Skip to content

Commit 6c3c057

Browse files
Azure Telemetry README updated (oneapi-src#480)
* Update sample.json * Update sample.json * Update README.md * Undo sample.json changes * Revert changes * Readme updated to fix titles and make clear instructions
1 parent 01a7076 commit 6c3c057

1 file changed

Lines changed: 16 additions & 6 deletions

File tree

  • Tools/IoTConnectionTools/azure-iothub-telemetry

Tools/IoTConnectionTools/azure-iothub-telemetry/README.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ This simple code sample helps the user to test the advantages of the Azure cloud
1414
This sample tests Azure Cloud IoT Hub. There are five protocols to choose from; MQTT, AMQP, HTTP, MQTT over Websockets and AMQP over Websockets.
1515
The sample requires an Azure account and created Azure IoT Hub.
1616

17-
##License
17+
## License
1818
Code samples are licensed under the MIT license. See
1919
[License.txt](https://github.com/oneapi-src/oneAPI-samples/blob/master/License.txt) for details.
2020

2121
Third party program Licenses can be found here: [third-party-programs.txt](https://github.com/oneapi-src/oneAPI-samples/blob/master/third-party-programs.txt)
2222

23-
##Building the `Azure Telemetry` Sample
23+
## Building the `Azure Telemetry` Sample
2424

2525
### On a Linux* System
2626

@@ -32,7 +32,17 @@ Perform the following steps:
3232
```
3333
static const char* connectionString = "[device connection string]"
3434
```
35-
3. Run in the terminal:
35+
36+
3. Add necessary PPAs and install all the prerequisite packages:
37+
```
38+
sudo add-apt-repository -y ppa:mraa/mraa
39+
sudo add-apt-repository -y ppa:aziotsdklinux/ppa-azureiot
40+
sudo apt-get update
41+
sudo apt-get install -y libmraa2 libmraa-dev libmraa-java python-mraa python3-mraa node-mraa mraa-tools pkg-config
42+
sudo apt-get install -y azure-iot-sdk-c-dev
43+
```
44+
45+
4. Run in the terminal:
3646
```
3747
cd $ENV{HOME}
3848
git clone https://github.com/Azure/azure-iot-sdk-c.git
@@ -43,18 +53,18 @@ Perform the following steps:
4353
cmake ..
4454
```
4555
46-
4. Run the following lines from the sample folder 'azure-iot-telemetry':
56+
5. Run the following lines from the sample folder 'azure-iot-telemetry':
4757
```
4858
mkdir build
4959
cd build
5060
cmake ..
5161
make all
5262
```
53-
5. Run the program using:
63+
6. Run the program using:
5464
```
5565
make run
5666
```
57-
6. Clean the program using:
67+
7. Clean the program using:
5868
```
5969
make clean
6070
```

0 commit comments

Comments
 (0)