2 Commits
v1.0 ... v1.1

Author SHA1 Message Date
d3de91d81e Version 1.1
Fixed one minor bug.
2023-01-06 13:03:50 +03:00
bf5b59c091 Minor changes 2023-01-04 18:01:50 +03:00

View File

@ -22,11 +22,11 @@ String getValue(String data, char separator, byte index);
void changeLedState(void);
const String firmware{"1.0"};
const String firmware{"1.1"};
String espnowNetName{"DEFAULT"};
String deviceName{"ESP-NOW Light/Led Strip"};
String deviceName{"ESP-NOW light/led strip"};
uint8_t ledType{ENLT_NONE};
bool ledStatus{false};
@ -349,7 +349,7 @@ void sendConfigMessage()
StaticJsonDocument<sizeof(esp_now_payload_data_t::message)> json;
json["name"] = deviceName;
json["unit"] = 1;
json["type"] = getValueName(HACT_LIGHT);
json["type"] = HACT_LIGHT;
json["class"] = ledType;
char buffer[sizeof(esp_now_payload_data_t::message)]{0};
serializeJsonPretty(json, buffer);