Reader small image

You're reading from  Arduino IoT Cloud for Developers

Product typeBook
Published inNov 2023
PublisherPackt
ISBN-139781837637171
Edition1st Edition
Right arrow
Author (1)
Muhammad Afzal
Muhammad Afzal
author image
Muhammad Afzal

Muhammad Afzal is a senior software engineer, with more than 14 years of experience working on web-based and IoT systems in multinational organizations. He always enjoys working and solving real-world business problems with technology. He provides freelance services to IoT-based product companies to write technical reviews and projects, and he also provides consultancy to organizations. In his free time, Muhammad creates videos and courses for YouTube and Udemy. He also runs a maker movement in his region for young students to boost their interest in adopting the latest technologies.
Read more about Muhammad Afzal

Right arrow

Exploring properties – Node.js SDK interaction techniques

Properties, also called cloud variables, are one of the most important ingredients for Things in the Arduino IoT Cloud, responsible for storage of sensor data from the device to the cloud or vice versa. In this section, we will explore how to create, update, delete, and list cloud variables using the Node.js SDK.

Creating a property

Firstly, we will start with property creation. The property creation documentation can be found at https://www.arduino.cc/reference/en/iot/api/#api-PropertiesV2-propertiesV2Create. Open the create-property.js file under the properties folder in VSCode.

There are two methods in the code: one is getToken(), which is the same method used in all our coding exercises to fetch the authentication token for our requests. The second method is CreateProperty(), which handles cloud variable creation. Consulting the documentation, we can see that we need to initiate the api variable with AiotApi...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Arduino IoT Cloud for Developers
Published in: Nov 2023Publisher: PacktISBN-13: 9781837637171

Author (1)

author image
Muhammad Afzal

Muhammad Afzal is a senior software engineer, with more than 14 years of experience working on web-based and IoT systems in multinational organizations. He always enjoys working and solving real-world business problems with technology. He provides freelance services to IoT-based product companies to write technical reviews and projects, and he also provides consultancy to organizations. In his free time, Muhammad creates videos and courses for YouTube and Udemy. He also runs a maker movement in his region for young students to boost their interest in adopting the latest technologies.
Read more about Muhammad Afzal