Direct-BT  2.3.1
Direct-BT - Direct Bluetooth Programming.
Classes | Functions | Variables
dbt_scanner01.cpp File Reference
#include <cinttypes>
#include <jau/dfa_utf8_decode.hpp>
#include <direct_bt/DirectBT.hpp>
#include <unistd.h>
Include dependency graph for dbt_scanner01.cpp:

Go to the source code of this file.

Classes

class  MyAdapterStatusListener
 
class  MyGattCharListener
 

Functions

int main (int argc, char *argv[])
 

Variables

std::shared_ptr< BTDevicedeviceFound = 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)
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
Examples
dbt_scanner01.cpp.

Definition at line 154 of file dbt_scanner01.cpp.

Here is the call graph for this function:

Variable Documentation

◆ _TEMPERATURE_MEASUREMENT

const uuid16_t _TEMPERATURE_MEASUREMENT(GattCharacteristicType::TEMPERATURE_MEASUREMENT)
static

◆ cvDeviceFound

std::condition_variable cvDeviceFound
Examples
dbt_scanner01.cpp.

Definition at line 52 of file dbt_scanner01.cpp.

◆ deviceFound

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.

Examples
dbt_scanner01.cpp.

Definition at line 50 of file dbt_scanner01.cpp.

◆ mtxDeviceFound

std::mutex mtxDeviceFound
Examples
dbt_scanner01.cpp.

Definition at line 51 of file dbt_scanner01.cpp.