Book Image

Arduino Data Communications

By : Robert Thas John
5 (1)
Book Image

Arduino Data Communications

5 (1)
By: Robert Thas John

Overview of this book

In our modern, internet-connected world, where billions of devices constantly collect and send data to systems to be stored and processed, it’s surprising how the intricacies of data transmission and storage are often overlooked in the IoT domain. With Arduino Data Communications, you'll bridge the knowledge gap and become an expert in collecting data from IoT sensors, transmitting data, and configuring your own databases. This book is an exploration of IoT’s inner workings, guiding you through the process of setting up an end-to-end system that you can employ to prototype your own IoT solutions, using easy-to-follow examples. It begins with a general overview of the Arduino ecosystem, acquainting you with various sensors and shields and unveiling the art of data collection. You’ll then explore data formats and methods to store data, both locally and on database servers. As you progress through the chapters, you’ll learn how to set up REST and MQTT infrastructure to communicate with databases and get hands-on with LoRaWAN, Ethernet, cellular, HC-12, and RS-485. The final chapters are your training ground for real-world projects, imparting the essential knowledge you need to tackle complex challenges with confidence. By the end of this Arduino book, you'll have seamlessly configured an end-to-end system, all while immersing yourself in practical scenarios that bring the world of IoT to life.
Table of Contents (20 chapters)
1
Part 1:Introduction to Arduino and Sensor Data
7
Part 2:Sending Data
14
Part 3: Miscellaneous Topics

Communicating over Ethernet

Let’s build a solution that will control the onboard LED based on the weather conditions in a particular location. We will make use of APIs from AccuWeather. You can sign up for free at https://developer.accuweather.com/.

Creating an AccuWeather app

Once you’ve created your account, you will need to create an app before you can get API keys to work with. Navigate to the MY APPS tab or go to https://developer.accuweather.com/user/me/apps. Follow these steps to create an app:

  1. Click on the + Add a new App button. This is shown here:
Figure 8.2 – AccuWeather developer portal

Figure 8.2 – AccuWeather developer portal

  1. Specify a name for the app.
  2. Under Products, choose Core Weather Limited Trial.
  3. For Where will the app be used?, choose Other.
  4. For What will you be creating with this app?, choose Internal App.
  5. For What is your app written in?, choose C++.
  6. For Is this for Business to Business or Business to Consumer...