Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
d3de91d81e | |||
bf5b59c091 |
@ -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);
|
||||
|
Reference in New Issue
Block a user