Closed terrorsl closed 2 years ago
Check all buttons in one function.
void Responce(const char *name) { ESP_LOGD(TAG, "name %s",name); if (strcmp(name, "card3") == 0) { crm.webUpdate("card3", "Открыта"); } else crm.webUpdate(name, "Nice"); }; crm.btnCallback(Responce); crm.begin("DEMO", Interface, 0,0,0);
Thanks for flexible approach to checking the state of a button
Check all buttons in one function.