Skip to content

Commit

Permalink
Fix #201 send ap_timeout as integer, not string
Browse files Browse the repository at this point in the history
  • Loading branch information
penfold42 committed Jan 28, 2020
1 parent 4ea1417 commit 1546334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ function submitWiFi() {
'ssid': $('#ssid').val(),
'passphrase': $('#password').val(),
'hostname': $('#hostname').val(),
'sta_timeout': $('#staTimeout').val(),
'sta_timeout': parseInt($('#staTimeout').val()),
'ip': [parseInt(ip[0]), parseInt(ip[1]), parseInt(ip[2]), parseInt(ip[3])],
'netmask': [parseInt(netmask[0]), parseInt(netmask[1]), parseInt(netmask[2]), parseInt(netmask[3])],
'gateway': [parseInt(gateway[0]), parseInt(gateway[1]), parseInt(gateway[2]), parseInt(gateway[3])],
Expand Down

0 comments on commit 1546334

Please sign in to comment.