Error when connecting Azure IoT Suite with Raspberry Pi

0 votes

I am attempting to link my Raspberry Pi to my Azure IoT suite using this tutorial.

I get these errors when entering the following code into my terminal:

cd ~/azure-iot-sdks/

sudo ~/azure-iot-sdks/c/build_all/linux/setup.sh   

chmod +x ~/azure-iot-sdks/c/build_all/linux/build.sh

~/azure-iot-sdks/c/build_all/linux/build.sh

Any help is appreciated !!

Sep 18, 2018 in IoT (Internet of Things) by Matt
• 2,270 points
902 views

1 answer to this question.

0 votes

down vote

I've verified the tutorial works on various environments,

  1. Host: Ubuntu 14.04, gcc version 4.8.4, cmake version 2.8.12.2, build succesfully.
  2. Host: Ubuntu 14.04, gcc version 4.9.3, cmake version 2.8.12.2, build succesfully.
  3. Host: Ubuntu 14.04, gcc version 4.9.3, cmake version 3.3.2, build succesfully.
  4. Host: Bash On Ubuntu On Windows, gcc version 4.8.4, cmake version 2.8.12.2, build succesfully.

Interesting thing is although gcc(>=4.9) and cmake(>=3.0) is recommended per this page, I found gcc 4.8 and cmake 2.8 also works find with this tutorial.

Anyway, you need to make sure you follow the steps thoroughly,

  1. Clone iot-hub-c-raspberrypi-getstartedkit and WiringPi repositories, with the --recursiveparameter.
  2. Go to WiringPi and do ./build. This step is not mentioned in the tutorial but I found it necessary.
  3. Make sure you have all the tools installed,

    sudo apt-get install curl libcurl4-openssl-dev uuid-dev uuid g++ make cmake git unzip openjdk-7-jre libssl-dev libncurses-dev subversion gawk

  4. Build the source code,

    cd ~/iot-hub-c-raspberrypi-getstartedkit/

    sudo ~/iot-hub-c-raspberrypi-getstartedkit/azure-iot- sdks/c/build_all/linux/setup.sh chmod +x ~/iot-hub-c-raspberrypi-getstartedkit/sample/build.sh

    ~/iot-hub-c-raspberrypi-getstartedkit/sample/build.sh

I've verified following the steps above, it builds successfully on various environments.

answered Sep 18, 2018 by anonymous2
• 4,240 points

Related Questions In IoT (Internet of Things)

0 votes
1 answer
0 votes
1 answer

Issue with connection on Watson IoT Out node on Raspberry Pi

The frequent disconnects could be due to ...READ MORE

answered Dec 20, 2018 in IoT (Internet of Things) by Shubham
• 13,490 points
996 views
0 votes
1 answer
0 votes
1 answer

Displaying Table Schema using Power BI with Azure IoT Hub

Answering your first question, Event Hubs are ...READ MORE

answered Aug 1, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,311 views
0 votes
1 answer

How to use the data I receive from Azure IoT Hub?

The payload you receive will be a ...READ MORE

answered Aug 1, 2018 in IoT (Internet of Things) by DataKing99
• 8,250 points
1,808 views
0 votes
2 answers

Azure IoT Hub Operations Monitoring

Hi, Can you tell which device you ...READ MORE

answered Jan 4, 2019 in IoT (Internet of Things) by Varul
• 140 points
1,682 views
0 votes
1 answer

Testing if messages from my Device is reaching the Azure IoT Hub?

Download the Device Explorer open source tool ...READ MORE

answered Aug 10, 2018 in IoT (Internet of Things) by DataKing99
• 8,250 points
3,864 views
0 votes
1 answer
0 votes
1 answer
+1 vote
1 answer

Configuring Raspberry Pi with Windows 10 IoT App using Rest API

You should use HttpClient instead of WebClient. Try ...READ MORE

answered Oct 10, 2018 in IoT (Internet of Things) by anonymous2
• 4,240 points
938 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP