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 | MyGattCharListener |
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 154 of file dbt_scanner01.cpp.
|
static |
std::condition_variable cvDeviceFound |
Definition at line 52 of file dbt_scanner01.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 fine grained control via BTGattHandler
For a more user convenient and readable approach see dbt_scanner00.cpp or dbt_scanner10.cpp!
This example does not represent the recommended utilization of Direct-BT.
Definition at line 50 of file dbt_scanner01.cpp.
std::mutex mtxDeviceFound |
Definition at line 51 of file dbt_scanner01.cpp.