Skip to content

Commit

Permalink
reference ssid by crc8
Browse files Browse the repository at this point in the history
  • Loading branch information
idolpx committed Jul 6, 2023
1 parent 6117b38 commit 214635e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/device/iec/fuji.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ void iecFuji::net_set_ssid()

if (t.size() == 2)
{
if ( mstr::isNumeric( t[0] ) ) {
// Find SSID by CRC8 Number
t[0] = fnWiFi.get_network_name_by_crc8( std::stoi(t[0]) );
}

strncpy(cfg.ssid, t[0].c_str(), 33);
strncpy(cfg.password, t[1].c_str(), 64);
}
Expand Down

0 comments on commit 214635e

Please sign in to comment.