![]() |
Data Gator
Hardware and software documentation for the Data Gator project.
|
Utilities such as callbacks for parsing bluetooth packets. More...
#include <NimBLEAdvertisedDevice.h>
#include <BLESensor.hpp>
#include <MinewS1.hpp>
#include <KKM_K6P.hpp>
#include <logger.hpp>
Go to the source code of this file.
Classes | |
class | ScanCallbacks |
Callbacks for BLE packets. More... | |
Utilities such as callbacks for parsing bluetooth packets.
The callback onResult()
receives data from advertising sensors and then checks if that packet belongs to a known/supported sensor. If so, then the data is parsed and logged using the logging utils in logger.hpp.
All BLE supported BLE sensors should be integrated with their own class which inherits from BLESensor.hpp. The class should also implement a function <sensor class>.advertisedDeviceIs<sensor type>(dev)
which parses the data packet and returns true if identified as an instance of that sensor type.