Closed sago35 closed 1 year ago
$ git grep -i "const ssid"
examples/espat/espconsole/main.go:23:const ssid = "YOURSSID"
examples/espat/esphub/main.go:21:const ssid = "YOURSSID"
examples/espat/espstation/main.go:18:const ssid = "YOURSSID"
examples/espat/mqttclient/main.go:24:const ssid = "YOURSSID"
examples/espat/mqttsub/main.go:25:const ssid = "YOURSSID"
examples/espat/tcpclient/main.go:18:const ssid = "YOURSSID"
examples/wifinina/connect/main.go:13:const ssid = ""
examples/wifinina/http-get/main.go:28:const ssid = ""
examples/wifinina/mqttclient/main.go:25:const ssid = ""
examples/wifinina/mqttsub/main.go:25:const ssid = ""
examples/wifinina/ntpclient/main.go:18:const ssid = ""
examples/wifinina/tcpclient/main.go:21:const ssid = ""
examples/wifinina/tlsclient/main.go:22:const ssid = ""
examples/wifinina/udpstation/main.go:19:const ssid = ""
examples/wifinina/webclient/main.go:19:const ssid = ""
Very good idea!
Seems like a good idea!
This has now been released, so closing. Thank you!
The current code is as follows
SSID settings, etc., require direct modification of the code. Changing directly increases the possibility of accidental git push.
So I suggest that it be the following The following form can be rewritten by adding another file.
It can also be rewritten using ldflags. (
tinygo flash -target wioterminal -ldflags '-X "main.ssid=YOUR_SSID"'
)So, I would like to rewrite examples. What do you think?