This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If the device is already on a network and you need to change it, you can load: | |
// http://<device_ip>/common/get_wifi_setting | |
// It'll give you a result like... ret=OK,ssid=OldSSIDHere,security=mixed,key=%6e%65%76%65%72%67%6f%6e%6e%61%67%69%76%65%79%6f%75%75%70 | |
// To update the same data, open that page and in the console, run this (modify as needed): | |
const ssid = 'NewSSIDHere'; | |
const key = 'nevergonnagiveyouup'; | |
const encoded = Array.from(key).map((c) => '%' + c.charCodeAt(0).toString(16).padStart(2, '0')).join(''); |