Book Image

Arduino IoT Cloud for Developers

By : Muhammad Afzal
Book Image

Arduino IoT Cloud for Developers

By: Muhammad Afzal

Overview of this book

The Arduino IoT Cloud offers a variety of features for building modern IoT solutions while reducing time and costs for prototyping and deployment. This book is a step-by-step guide, helping you master the powerful Arduino IoT Cloud ecosystem. This book begins by introducing you to the IoT landscape including its architecture, communication technologies, and protocols and then to the capabilities of the Arduino IoT Cloud platform and the Cloud Editor. With practical projects, such as monitoring air quality, building a portable asset tracker, and creating a remote alarm system using the LoRaWAN specification, you'll learn how to implement real-world IoT applications. Next, you'll explore communication between IoT devices and cloud platforms as well as the implementation of the Arduino IoT Cloud SDK and JavaScript for advanced customization. You'll also find out how to program IoT nodes, analyze the surrounding environment data, and visualize it on dashboards. Additionally, you’ll get to grips with advanced features such as task scheduling, synchronization, remote over-the-air updates for IoT nodes, and scripting with CCLI, through hands-on examples. By the end of this book, you’ll have learned how to work with the Arduino IoT Cloud platform and related hardware devices and will be able to develop industry-specific and cost-effective IoT solutions, such as smart homes and smart agriculture.
Table of Contents (21 chapters)
1
Part 1: Introduction to IoT and Communication Technologies and the Arduino IoT Cloud
5
Part 2: Getting Hands-On with Different Communication Technologies
9
Part 3: Exchanging Data between Nodes and Cloud Applications
14
Part 4: Learning Advanced Features of the Arduino IoT Cloud and Looking Ahead

Configuring the Thing, network credentials, cloud variables, and code

After setting up the hardware, it’s time to set up the Thing in the Arduino IoT Cloud. For this project, we need four cloud variables to fetch different properties from the device. The network settings will be different as we are using a GSM series board instead of Wi-Fi. Figure 5.7 shows the complete overview of the Thing:

Figure 5.7 – A portable Thing tracker using the MKR GSM 1400 Thing setup

Figure 5.7 – A portable Thing tracker using the MKR GSM 1400 Thing setup

Set up a new Thing with the name A portable thing tracker using MKR GSM1400. Then, follow these steps to create cloud variables, an associate device, a network configuration, and finally, the code:

  1. Firstly, we need to set up four cloud variables for location, altitude feet, satellite count, and speed. The complete details regarding these cloud variables are available in the following section.
  2. Then, we need to associate the device with the Thing. In the current project...