3 #ifdef USE_ESP32_IMPROV_STATE_CALLBACK 11 namespace esp32_improv {
17 if (state == improv::STATE_PROVISIONED && !parent->
is_failed()) {
28 if (state == improv::STATE_PROVISIONING && !parent->
is_failed()) {
39 if ((state == improv::STATE_AUTHORIZED || state == improv::STATE_AWAITING_AUTHORIZATION) &&
ESP32ImprovProvisionedTrigger(ESP32ImprovComponent *parent)
void trigger(Ts... x)
Inform the parent automation that the event has triggered.
void add_on_state_callback(std::function< void(improv::State, improv::Error)> &&callback)
ESP32ImprovStartTrigger(ESP32ImprovComponent *parent)
ESP32ImprovStoppedTrigger(ESP32ImprovComponent *parent)
Implementation of SPI Controller mode.
ESP32ImprovStateTrigger(ESP32ImprovComponent *parent)
ESP32ImprovProvisioningTrigger(ESP32ImprovComponent *parent)