8 namespace airthings_ble {
10 static const char *
const TAG =
"airthings_ble";
15 if (it.data.size() < 4)
18 uint32_t sn = it.data[0];
19 sn |= ((uint32_t) it.data[1] << 8);
20 sn |= ((uint32_t) it.data[2] << 16);
21 sn |= ((uint32_t) it.data[3] << 24);
23 ESP_LOGD(TAG,
"Found AirThings device Serial:%" PRIu32
" (MAC: %s)", sn, device.
address_str().c_str());
bool parse_device(const esp32_ble_tracker::ESPBTDevice &device) override
std::string address_str() const
const std::vector< ServiceData > & get_manufacturer_datas() const
static ESPBTUUID from_uint32(uint32_t uuid)
Implementation of SPI Controller mode.