|
Direct-BT
2.3.1
Direct-BT - Direct Bluetooth Programming.
|
#include <cinttypes>#include <jau/dfa_utf8_decode.hpp>#include <direct_bt/DirectBT.hpp>#include <unistd.h>Go to the source code of this file.
Classes | |
| class | MyAdapterStatusListener |
| class | MyGATTEventListener |
Functions | |
| int | main (int argc, char *argv[]) |
Variables | |
| std::shared_ptr< BTDevice > | deviceFound = nullptr |
| This C++ direct_bt scanner example is a TinyB backward compatible and not fully event driven. More... | |
| std::mutex | mtxDeviceFound |
| std::condition_variable | cvDeviceFound |
| static const uuid16_t | _TEMPERATURE_MEASUREMENT (GattCharacteristicType::TEMPERATURE_MEASUREMENT) |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 155 of file dbt_scanner00.cpp.
|
static |
| std::condition_variable cvDeviceFound |
Definition at line 53 of file dbt_scanner00.cpp.
| std::shared_ptr<BTDevice> deviceFound = nullptr |
This C++ direct_bt scanner example is a TinyB backward compatible and not fully event driven.
It uses a more simple high-level approach via semantic GATT types (Service, Characteristic, ..) without bothering with fine implementation details of BTGattHandler.
For a more technical and low-level approach see dbt_scanner01.cpp!
This example does not represent the recommended utilization of Direct-BT.
Definition at line 51 of file dbt_scanner00.cpp.
| std::mutex mtxDeviceFound |
Definition at line 52 of file dbt_scanner00.cpp.
1.8.18