Reader small image

You're reading from  Building Wireless Sensor Networks Using Arduino

Product typeBook
Published inOct 2015
Publisher
ISBN-139781784395582
Edition1st Edition
Tools
Concepts
Right arrow
Author (1)
Matthijs Kooijman
Matthijs Kooijman
author image
Matthijs Kooijman

Matthijs Kooijman is an independent embedded software developer who is firmly connected with the maker movement through a local fab lab and his work on the Arduino project. Since his youth, Matthijs has been interested in making things; for example, he built his first television remote control before the age of 10 (using a piece of rope to pull on the volume slider, not a solution that he would choose today). Matthijs has a firm belief in the merits of open source software and enjoys contributing to the software that he uses—both by coding and helping out other users. His work experience is broad—ranging from Web development to Linux driver hacking, from tech support to various forms of wireless networking, but almost always related to open source software in some way.
Read more about Matthijs Kooijman

Right arrow

Software setup


Now that the hardware is covered, it is time to look at the software side of things. In this section, you will create a small sketch (called Connect.ino in the code bundle) that makes the Arduino send a VR command to the XBee module to query the current firmware version of the XBee module. The Arduino code is set up so that all API frames received from the XBee module are printed, so you can see the reply to this command as well, confirming that connectivity is working. No data is transmitted wirelessly yet; this just tests the Arduino-to-XBee connection.

Example sketches

In this and the following chapters, you will write some Arduino sketch code. All of the example code shown in the book is also available in the code bundle, which you can download from the Packt website.

The example code in this book is sometimes a bit more verbose than strictly needed. Sometimes this makes it easier to expand an example later, or sometimes the example illustrates some good coding practice that...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Building Wireless Sensor Networks Using Arduino
Published in: Oct 2015Publisher: ISBN-13: 9781784395582

Author (1)

author image
Matthijs Kooijman

Matthijs Kooijman is an independent embedded software developer who is firmly connected with the maker movement through a local fab lab and his work on the Arduino project. Since his youth, Matthijs has been interested in making things; for example, he built his first television remote control before the age of 10 (using a piece of rope to pull on the volume slider, not a solution that he would choose today). Matthijs has a firm belief in the merits of open source software and enjoys contributing to the software that he uses—both by coding and helping out other users. His work experience is broad—ranging from Web development to Linux driver hacking, from tech support to various forms of wireless networking, but almost always related to open source software in some way.
Read more about Matthijs Kooijman