Chapter 6. Weather Station

In this chapter, you will build a Bluetooth-LE-enabled weather station. A BME280 sensor will be used to measure temperature, humidity, and pressure. The Adafruit BME280 breakout board combines a Bosch BME280 environmental sensor with a voltage regulator and other components to make it easier to use.

The Weather Station Service is defined in Table 6-1. Bluetooth Low Energy clients can read the values of the sensors at any time. When the client first connects, it reads the characteristic values to get the initial data. The client could periodically re-read the characteristics to see if any data changed, but it is not very efficient for the client to poll the server looking for changes in values. Each sensor characteristic ...

Get Make: Bluetooth now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.