10#include <esp_gattc_api.h>
16namespace pvvx_mithermometer {
47 esp_ble_gattc_cb_param_t *param)
override;
125 esp32_ble_tracker::ESPBTUUID::from_raw(
"00001f10-0000-1000-8000-00805f9b34fb");
127 esp32_ble_tracker::ESPBTUUID::from_raw(
"00001f1f-0000-1000-8000-00805f9b34fb");
This class simplifies creating components that periodically check a state.
float get_setup_priority() const override
void send_to_setup_char_(uint8_t *blk, size_t size)
void print_bignum(float bignum)
Print the big number.
void print_bracket(bool bracket=true)
Print round brackets around the face.
void setcfgbit_(uint8_t bit, bool value)
void print_battery(bool battery=true)
Print battery sign.
optional< pvvx_writer_t > writer_
void set_time(time::RealTimeClock *time)
esp32_ble_tracker::ESPBTUUID service_uuid_
void set_validity_period(uint16_t validity_period)
Set validity period of the display information in seconds (1..65535)
bool connection_established_
esp32_ble_tracker::ESPBTUUID char_uuid_
void set_auto_clear(bool auto_clear_enabled)
void dump_config() override
void print_smallnum(float smallnum)
Print the small number.
time::RealTimeClock * time_
void delayed_disconnect_()
void clear()
Clear the screen.
uint16_t validity_period_
void set_disconnect_delay(uint32_t ms)
void gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_t gattc_if, esp_ble_gattc_cb_param_t *param) override
uint32_t disconnect_delay_ms_
void print_happy(bool happy=true)
Print a happy face.
void set_writer(pvvx_writer_t &&writer)
void print_percent(bool percent=true)
Print percent sign at small number.
void print_sad(bool sad=true)
Print a sad face.
void print_unit(UNIT unit)
Print unit of big number.
The RealTimeClock class exposes common timekeeping functions via the device's local real-time clock.
std::function< void(PVVXDisplay &)> pvvx_writer_t
UNIT
Possible units for the big number.
@ UNIT_NONE
do not show a unit
const float DATA
For components that import data from directly connected sensors like DHT.
Providing packet encoding functions for exchanging data with a remote host.