Increase WiFi passphrase length to 63 + terminator. #13

This commit is contained in:
Robert Strouse 2023-04-04 13:00:18 -07:00
parent 9b8a952db9
commit b1b8d1be46
5 changed files with 8 additions and 14 deletions

View file

@ -905,10 +905,10 @@ void Web::begin() {
server.send(500, _encoding_json, F("{\"status\":\"ERROR\",\"desc\":\"Shade not found to pair\"}"));
}
else {
if(shade->bitLength == 56)
shade->sendCommand(somfy_commands::Prog, 7);
else
shade->sendCommand(somfy_commands::Prog, 1);
//if(shade->bitLength == 56)
shade->sendCommand(somfy_commands::Prog, 4);
//else
// shade->sendCommand(somfy_commands::Prog, 1);
shade->paired = true;
shade->save();
DynamicJsonDocument doc(512);