10#define LOG_BUTTON(prefix, type, obj) \
11 if ((obj) != nullptr) { \
12 ESP_LOGCONFIG(TAG, "%s%s '%s'", prefix, LOG_STR_LITERAL(type), (obj)->get_name().c_str()); \
13 if (!(obj)->get_icon().empty()) { \
14 ESP_LOGCONFIG(TAG, "%s Icon: '%s'", prefix, (obj)->get_icon().c_str()); \
18#define SUB_BUTTON(name) \
20 button::Button *name##_button_{nullptr}; \
23 void set_##name##_button(button::Button *button) { this->name##_button_ = button; }
Providing packet encoding functions for exchanging data with a remote host.