Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
dc17e39ff6 | |||
e1d74e98eb | |||
4ece7281d3 |
@ -29,3 +29,5 @@ See [here](https://github.com/aZholtikov/ESP-NOW-Switch/tree/main/hardware).
|
||||
3. If encryption is used, the key must be set same of all another ESP-NOW devices in network.
|
||||
4. Upload the "data" folder (with web interface) into the filesystem before flashing.
|
||||
5. For using this firmware on Tuya/SmartLife/eWeLink WiFi switches, the WiFi module must be replaced with an ESP8266 compatible module (if necessary).
|
||||
|
||||
Any feedback via [e-mail](mailto:github@zh.com.ru) would be appreciated. Or... [Buy me a coffee](https://paypal.me/aZholtikov).
|
||||
|
@ -32,7 +32,7 @@ typedef struct
|
||||
|
||||
std::vector<espnow_message_t> espnowMessage;
|
||||
|
||||
const String firmware{"1.2"};
|
||||
const String firmware{"1.21"};
|
||||
|
||||
String espnowNetName{"DEFAULT"};
|
||||
|
||||
@ -179,6 +179,12 @@ void onBroadcastReceiving(const char *data, const uint8_t *sender)
|
||||
sendConfigMessage();
|
||||
if (sensorPin)
|
||||
sendConfigMessage(sensorType);
|
||||
sendAttributesMessage();
|
||||
if (sensorPin)
|
||||
sendAttributesMessage(sensorType);
|
||||
sendStatusMessage();
|
||||
if (sensorPin)
|
||||
sendStatusMessage(sensorType);
|
||||
}
|
||||
}
|
||||
gatewayAvailabilityCheckTimer.once(15, gatewayAvailabilityCheckTimerCallback);
|
||||
|
Reference in New Issue
Block a user