ESPHome  2024.11.1
ruuvi_ble.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 #ifdef USE_ESP32
7 
8 namespace esphome {
9 namespace ruuvi_ble {
10 
23 };
24 
25 bool parse_ruuvi_data_byte(uint8_t data_type, const uint8_t *data, uint8_t data_length, RuuviParseResult &result);
26 
28 
30  public:
31  bool parse_device(const esp32_ble_tracker::ESPBTDevice &device) override;
32 };
33 
34 } // namespace ruuvi_ble
35 } // namespace esphome
36 
37 #endif
optional< float > movement_counter
Definition: ruuvi_ble.h:21
optional< float > battery_voltage
Definition: ruuvi_ble.h:19
optional< float > acceleration_x
Definition: ruuvi_ble.h:16
optional< float > acceleration_y
Definition: ruuvi_ble.h:17
optional< float > acceleration_z
Definition: ruuvi_ble.h:18
optional< float > measurement_sequence_number
Definition: ruuvi_ble.h:22
optional< RuuviParseResult > parse_ruuvi(const esp32_ble_tracker::ESPBTDevice &device)
Definition: ruuvi_ble.cpp:81
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7
bool parse_ruuvi_data_byte(const esp32_ble_tracker::adv_data_t &adv_data, RuuviParseResult &result)
Definition: ruuvi_ble.cpp:11