Direct-BT
2.3.1
Direct-BT - Direct Bluetooth Programming.
|
Go to the documentation of this file.
32 #include <unordered_set>
33 #include <unordered_map>
65 if( res.length() > 0 ) {
96 if( res.length() > 0 ) {
99 res.append(
id.toString() );
110 for(; first != last; ++first) {
122 return m(address, name, it);
133 if( m(
id.addressAndType.address,
id.name, q) ) {
173 for(; first != last; ++first) {
std::string getWaitForDevicesString() noexcept
void clear()
Method clears the underlying byte array b and sets length to zero.
bool areAllDevicesProcessed(DeviceQueryMatchFunc m) noexcept
Returns.
std::string getProcessedDevicesString() noexcept
jau::darray< DeviceID > getProcessedDevices() noexcept
Returns a copy of the current collection of processed DeviceID.
size_t getProcessingDeviceCount() noexcept
static bool scanEUI48Sub(const std::string &str, EUI48Sub &dest, std::string &errmsg)
Fills given EUI48Sub instance via given string representation.
constexpr UnaryFunction for_each(InputIt first, InputIt last, UnaryFunction f)
Like std::for_each() of 'algorithm'.
static jau::darray< DeviceQuery > waitForDevices
void clearProcessingDevices() noexcept
Clears internal list.
void addToProcessingDevices(const BDAddressAndType &a, const std::string &n) noexcept
void clearProcessedDevices() noexcept
Clears internal list.
void clearWaitForDevices() noexcept
Clears internal list.
bool isWaitingForDevice(const EUI48 &address, const std::string &name, DeviceQueryMatchFunc m) noexcept
Returns.
A 48 bit EUI-48 sub-identifier, see EUI48.
Implementation of a dynamic linear array storage, aka vector.
constexpr void push_back(const value_type &x)
Like std::vector::push_back(), copy.
Application toolkit providing BT device registration of processed and awaited devices.
static std::unordered_set< DeviceID > devicesInProcessing
static std::recursive_mutex mtx_devicesProcessed
std::string toString() const
void addToWaitForDevices(const std::string &addrOrNameSub) noexcept
bool removeFromProcessingDevices(const BDAddressAndType &a) noexcept
void addToProcessedDevices(const BDAddressAndType &a, const std::string &n) noexcept
bool isDeviceProcessing(const BDAddressAndType &a) noexcept
static std::unordered_set< DeviceID > devicesProcessed
Specifies unique device identities, using BDAddressAndType as key.
A packed 48 bit EUI-48 identifier, formerly known as MAC-48 or simply network device MAC address (Med...
jau::darray< DeviceQuery > & getWaitForDevices() noexcept
Returns the reference of the current list of DeviceQuery, not a copy.
Specifies devices queries to act upon.
bool isWaitingForAnyDevice() noexcept
size_t getProcessedDeviceCount() noexcept
static std::recursive_mutex mtx_devicesProcessing
bool isDeviceProcessed(const BDAddressAndType &a) noexcept
constexpr InputIt find_if(InputIt first, InputIt last, UnaryPredicate p)
Like std::find_if() of 'algorithm'.
size_t getWaitForDevicesCount() noexcept
bool(* DeviceQueryMatchFunc)(const EUI48 &address, const std::string &name, const DeviceQuery &q)
Function for user defined BTDeviceRegistry::DeviceQuery matching criteria and algorithm.
Unique Bluetooth EUI48 address and BDAddressType tuple.
jau::darray< DeviceID > getProcessingDevices() noexcept
Returns a copy of the current collection of processing DeviceID.