Skip to Content
Building Wireless Sensor Networks
book

Building Wireless Sensor Networks

by Robert Faludi
December 2010
Intermediate to advanced
318 pages
8h 43m
English
O'Reilly Media, Inc.
Content preview from Building Wireless Sensor Networks

Chapter 5. API and a Sensor Network

Here the plot heats up. You now have everything you need to conquer the XBee’s application programming interface. This is something we need to do so we can use all the data our networks can provide. We will start with simple concepts and scaffold you up to a full understanding of the structured API communication frames. That will get you ready to create a fully scalable sensor network of your own, using the example at the end of the chapter.

What’s an API?

An application programming interface (API) is simply a set of standard interfaces created to allow one software program to interact with another. APIs let one computer application request services from another application in a standard manner. For our purposes, the most important thing to note is that APIs are specifically engineered to enable computers to talk efficiently to other computers. They are not generally designed for direct human interaction.

So far, we’ve been using the XBee radios in transparent/command mode. For example, in the simple chat we set up in Chapter 2, we were able to type text at a keyboard to enter command mode, then issue AT commands by typing them right in. When we were done with configuration, we exited command mode and went right into transparent mode, where everything typed at the keyboard was transferred verbatim to the destination radio and read directly on the screen. This was a simple way to get started with wireless networking, and it’s one of the great strengths ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Building Wireless Sensor Networks

Building Wireless Sensor Networks

Nandini Mukherjee, Sarmistha Neogy, Sarbani Roy
Wireless Sensor Networks

Wireless Sensor Networks

Shafiullah Khan, Al-Sakib Khan Pathan, Nabil Ali Alrajeh
Wireless Sensor and Actuator Networks

Wireless Sensor and Actuator Networks

Roberto Verdone, Davide Dardari, Gianluca Mazzini, Andrea Conti

Publisher Resources

ISBN: 780596807757Errata Page