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

Go to the source code of this file.

Classes

class  MyAdapterStatusListener
 
class  MyGATTEventListener
 

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_scanner00.cpp.

Definition at line 155 of file dbt_scanner00.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_scanner00.cpp.

Definition at line 53 of file dbt_scanner00.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 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.

Examples
dbt_scanner00.cpp, and dbt_scanner10.cpp.

Definition at line 51 of file dbt_scanner00.cpp.

◆ mtxDeviceFound

std::mutex mtxDeviceFound
Examples
dbt_scanner00.cpp.

Definition at line 52 of file dbt_scanner00.cpp.