Version 1.13
Added encrypting messages.
This commit is contained in:
parent
7f51f05eb8
commit
bcda1c9ea5
@ -4,7 +4,7 @@ ESP-NOW based light/led strip controller for ESP8266. Alternate firmware for Tuy
|
|||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
1. After turn on (or after rebooting) creates an access point named "ESP-NOW Light XXXXXXXXXXXX" with password "12345678" (IP 192.168.4.1). Access point will be shown during 5 minutes. The rest of the time access point is a hidden.
|
1. After turn on (or after rebooting) creates an access point named "ESP-NOW light XXXXXXXXXXXX" with password "12345678" (IP 192.168.4.1). Access point will be shown during 5 minutes. The rest of the time access point is a hidden.
|
||||||
2. Periodically transmission of system information (every 60 seconds), availability status (every 10 seconds) and state status (every 300 seconds) to the gateway.
|
2. Periodically transmission of system information (every 60 seconds), availability status (every 10 seconds) and state status (every 300 seconds) to the gateway.
|
||||||
3. Saves the last state when the power is turned off. Goes to the last state when the power is turned on.
|
3. Saves the last state when the power is turned off. Goes to the last state when the power is turned on.
|
||||||
4. Automatically adds light/led strip configuration to Home Assistan via MQTT discovery as a light.
|
4. Automatically adds light/led strip configuration to Home Assistan via MQTT discovery as a light.
|
||||||
@ -25,5 +25,6 @@ See [here](https://github.com/aZholtikov/ESP-NOW-Light-Led-Strip/tree/main/hardw
|
|||||||
|
|
||||||
1. A gateway is required. For details see [ESP-NOW Gateway](https://github.com/aZholtikov/ESP-NOW-Gateway).
|
1. A gateway is required. For details see [ESP-NOW Gateway](https://github.com/aZholtikov/ESP-NOW-Gateway).
|
||||||
2. ESP-NOW network name must be set same of all another ESP-NOW devices in network.
|
2. ESP-NOW network name must be set same of all another ESP-NOW devices in network.
|
||||||
3. Upload the "data" folder (with web interface) into the filesystem before flashing.
|
3. If encryption is used, the key must be set same of all another ESP-NOW devices in network.
|
||||||
4. For using this firmware on Tuya/SmartLife WiFi light/led strip controllers, the WiFi module must be replaced with an ESP8266 compatible module (if necessary).
|
4. Upload the "data" folder (with web interface) into the filesystem before flashing.
|
||||||
|
5. For using this firmware on Tuya/SmartLife WiFi light/led strip controllers, the WiFi module must be replaced with an ESP8266 compatible module (if necessary).
|
||||||
|
@ -30,7 +30,7 @@ typedef struct
|
|||||||
|
|
||||||
std::vector<espnow_message_t> espnowMessage;
|
std::vector<espnow_message_t> espnowMessage;
|
||||||
|
|
||||||
const String firmware{"1.12"};
|
const String firmware{"1.13"};
|
||||||
|
|
||||||
String espnowNetName{"DEFAULT"};
|
String espnowNetName{"DEFAULT"};
|
||||||
|
|
||||||
@ -102,6 +102,7 @@ void setup()
|
|||||||
|
|
||||||
WiFi.setSleepMode(WIFI_NONE_SLEEP);
|
WiFi.setSleepMode(WIFI_NONE_SLEEP);
|
||||||
myNet.begin(espnowNetName.c_str());
|
myNet.begin(espnowNetName.c_str());
|
||||||
|
// myNet.setCryptKey("VERY_LONG_CRYPT_KEY"); // If encryption is used, the key must be set same of all another ESP-NOW devices in network.
|
||||||
|
|
||||||
myNet.setOnBroadcastReceivingCallback(onBroadcastReceiving);
|
myNet.setOnBroadcastReceivingCallback(onBroadcastReceiving);
|
||||||
myNet.setOnUnicastReceivingCallback(onUnicastReceiving);
|
myNet.setOnUnicastReceivingCallback(onUnicastReceiving);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user