Skip to content

Commit

Permalink
Merge pull request #645 from esprfid/fix-pincode
Browse files Browse the repository at this point in the history
Fix pincode reading in websocket
  • Loading branch information
matjack1 authored Jun 11, 2024
2 parents 33a44b7 + 8c9ff93 commit 1a65540
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wsResponses.esp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ void ICACHE_FLASH_ATTR sendUserList(int page, AsyncWebSocketClient *client)
if (!error)
{
String username = json["user"];
const char * pincode = "";
String pincode = "";
if(json.containsKey("pincode"))
{
pincode = json["pincode"];
pincode = String((const char *)json["pincode"]);
}
for (int x = 1; x <= MAX_NUM_RELAYS; x++)
{
Expand Down

0 comments on commit 1a65540

Please sign in to comment.