ESPHome
2026.8.0b4
Loading...
Searching...
No Matches
esphome
components
ble_device_base
ble_client_state.cpp
Go to the documentation of this file.
1
#include "
ble_client_state.h
"
2
3
namespace
esphome::ble_device_base
{
4
5
const
char
*
client_state_to_string
(
ClientState
state
) {
6
switch
(
state
) {
7
case
ClientState::INIT
:
8
return
"INIT"
;
9
case
ClientState::DISCONNECTING
:
10
return
"DISCONNECTING"
;
11
case
ClientState::IDLE
:
12
return
"IDLE"
;
13
case
ClientState::DISCOVERED
:
14
return
"DISCOVERED"
;
15
case
ClientState::CONNECTING
:
16
return
"CONNECTING"
;
17
case
ClientState::CONNECTED
:
18
return
"CONNECTED"
;
19
case
ClientState::ESTABLISHED
:
20
return
"ESTABLISHED"
;
21
default
:
22
return
"UNKNOWN"
;
23
}
24
}
25
26
}
// namespace esphome::ble_device_base
ble_client_state.h
state
bool state
Definition
fan.h:2
esphome::ble_device_base
Definition
automation.h:17
esphome::ble_device_base::client_state_to_string
const char * client_state_to_string(ClientState state)
Definition
ble_client_state.cpp:5
esphome::ble_device_base::ClientState
ClientState
Definition
ble_client_state.h:49
esphome::ble_device_base::ClientState::DISCOVERED
@ DISCOVERED
esphome::ble_device_base::ClientState::ESTABLISHED
@ ESTABLISHED
esphome::ble_device_base::ClientState::CONNECTING
@ CONNECTING
esphome::ble_device_base::ClientState::CONNECTED
@ CONNECTED
esphome::ble_device_base::ClientState::IDLE
@ IDLE
esphome::ble_device_base::ClientState::DISCONNECTING
@ DISCONNECTING
esphome::ble_device_base::ClientState::INIT
@ INIT
Generated by
1.12.0