Book Image

IoT Projects with Bluetooth Low Energy

By : Madhur Bhargava
Book Image

IoT Projects with Bluetooth Low Energy

By: Madhur Bhargava

Overview of this book

Bluetooth Low Energy, or Bluetooth Smart, is Wireless Personal Area networking aimed at smart devices and IoT applications. BLE has been increasingly adopted by application developers and IoT enthusiasts to establish connections between smart devices. This book initially covers all the required aspects of BLE, before you start working on IoT projects. In the initial stages of the book, you will learn about the basic aspects of Bluetooth Low Energy—such as discovering devices, services, and characteristics—that will be helpful for advanced-level projects. This book will guide you through building hands-on projects using BLE and IoT. These projects include tracking health data, using a mobile App, and making this data available for health practitioners; Indoor navigation; creating beacons using the Raspberry Pi; and warehouse weather Monitoring. This book also covers aspects of Bluetooth 5 (the latest release) and its effect on each of these projects. By the end of this book, you will have hands-on experience of using Bluetooth Low Energy to integrate with smart devices and IoT projects.
Table of Contents (15 chapters)
Title Page
Credits
Foreword
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Central Peripheral Architecture for BLE


As understanding of Bluetooth Low Energy architecture in terms of Central and Peripheral roles is essential to understand how Bluetooth Low Energy devices advertise and connect to each other.

A Central is a device, which scans for Bluetooth devices to connect and utilize the information hosted by them. Usually, Central devices are richer in terms of resources such as computing power compared to the Peripheral devices. Specific to the use case that we will describe in this chapter, the role of a Central will be played by a mobile phone (Android/iOS):

Figure 1: Central and Peripheral Roles in Bluetooth Low Energy; source: developer.apple.com

Peripherals, on the other hand, are devices, which advertise their presence, and it is by virtue of this advertisement that the Central knows that a Peripheral device is nearby and it can connect to enquire about its data. For this chapter, we will be using the following to act as peripherals:

  • A fitness tracker
  • A mobile...