feat: add archer ax50

This commit is contained in:
2023-07-02 19:50:59 +02:00
parent 55ed1c1b36
commit cc9c9354bc
4 changed files with 101 additions and 7 deletions

View File

@@ -23,7 +23,6 @@ func main() {
config := cfg.NewConfig(envFile)
log.SetFlags(log.Lmicroseconds)
config.LogFile = false
if config.LogFile {
logFileName := fmt.Sprintf("%s.txt", time.Now().Format(strings.ReplaceAll(time.RFC1123Z, ":", "_")))
f, err := os.OpenFile(logFileName, os.O_WRONLY|os.O_CREATE|os.O_APPEND, 0o644)
@@ -57,7 +56,7 @@ func main() {
}
sw := switcher.NewSwitcher(remoteControlBrowserURL, config)
prv := providers.NewNucom(sw.Page)
prv := providers.NewArcherAx50(sw.Page)
err := sw.SwitchWIFI(prv)
if err != nil {
panic(err)