ankit-thealchemist / sensor-data-acquisition-ble

This example shows how to aquire the data over the ble

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sensor Data acquisition over Ble

This example shows how to aquire the sensor data over the ble and send it to the server using the wifi. The soc we used in this project is esp32

The example composed of the 2 devices, one is peripheral and other is central.

Peripheral

Peripheral is the device with have the sensor on board, Data has been collected periodically and sended over the ble to the central device. This is our server, which exposes the temperature sensor. Also it is the constarined device, which is on the battery . To conserve the battery, we are using the deepsleep. Data is sended over the json format.

Central

Central device is our client device. Central device wakes up at the definite interval and search for the server to get the data. It searched the device and connect to it. Accquire the data the parse it according to the json format.

After acquisition of data, it create the wifi connection ot send the data over the mqtt. After that it goes again for sleep.

About

This example shows how to aquire the data over the ble

License:GNU General Public License v3.0


Languages

Language:C 98.4%Language:CMake 1.0%Language:Makefile 0.6%