espat,wifinina,rtl8720dn: change ssid/pass from const to var

This commit is contained in:
sago35
2022-09-23 12:01:57 +09:00
committed by Ron Evans
parent 4061adf6db
commit 5af2512901
25 changed files with 134 additions and 116 deletions
@@ -21,16 +21,16 @@ import (
// If debug is enabled, a serial connection is required.
// func init() {
// ssid = "your-ssid"
// password = "your-password"
// pass = "your-password"
// debug = false // true
// server = "tinygo.org"
// }
var (
ssid string
password string
url = "http://tinygo.org/"
debug = false
ssid string
pass string
url = "http://tinygo.org/"
debug = false
)
var (
@@ -88,7 +88,7 @@ func run() error {
http.SetBuf(buf[:])
fmt.Fprintf(terminal, "ConnectToAP()\r\n")
err := adaptor.ConnectToAccessPoint(ssid, password, 10*time.Second)
err := adaptor.ConnectToAccessPoint(ssid, pass, 10*time.Second)
if err != nil {
return err
}