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
+5 -3
View File
@@ -9,9 +9,11 @@ import (
"tinygo.org/x/drivers/wifinina"
)
// access point info
const ssid = ""
const pass = ""
var (
// access point info
ssid string
pass string
)
// these are the default pins for the Arduino Nano33 IoT.
// change these to connect to a different UART or pins for the ESP8266/ESP32
+5 -4
View File
@@ -9,7 +9,6 @@
//
// examples/wifinina/webclient
// examples/wifinina/tlsclient
//
package main
import (
@@ -24,9 +23,11 @@ import (
"tinygo.org/x/drivers/wifinina"
)
// access point info
const ssid = ""
const pass = ""
var (
// access point info
ssid string
pass string
)
// IP address of the server aka "hub". Replace with your own info.
// Can specify a URL starting with http or https
+6 -5
View File
@@ -7,8 +7,7 @@
//
// You must install the Paho MQTT package to build this program:
//
// go get -u github.com/eclipse/paho.mqtt.golang
//
// go get -u github.com/eclipse/paho.mqtt.golang
package main
import (
@@ -21,9 +20,11 @@ import (
"tinygo.org/x/drivers/wifinina"
)
// access point info
const ssid = ""
const pass = ""
var (
// access point info
ssid string
pass string
)
// IP address of the MQTT broker to use. Replace with your own info.
const server = "tcp://test.mosquitto.org:1883"
+6 -5
View File
@@ -7,8 +7,7 @@
//
// You must also install the Paho MQTT package to build this program:
//
// go get -u github.com/eclipse/paho.mqtt.golang
//
// go get -u github.com/eclipse/paho.mqtt.golang
package main
import (
@@ -21,9 +20,11 @@ import (
"tinygo.org/x/drivers/wifinina"
)
// access point info
const ssid = ""
const pass = ""
var (
// access point info
ssid string
pass string
)
// IP address of the MQTT broker to use. Replace with your own info.
const server = "tcp://test.mosquitto.org:1883"
+5 -3
View File
@@ -14,9 +14,11 @@ import (
"tinygo.org/x/drivers/wifinina"
)
// access point info
const ssid = ""
const pass = ""
var (
// access point info
ssid string
pass string
)
// IP address of the server aka "hub". Replace with your own info.
const ntpHost = "129.6.15.29"
+5 -4
View File
@@ -4,7 +4,6 @@
// You can open a server to accept connections from this program using:
//
// nc -w 5 -lk 8080
//
package main
import (
@@ -17,9 +16,11 @@ import (
"tinygo.org/x/drivers/wifinina"
)
// access point info
const ssid = ""
const pass = ""
var (
// access point info
ssid string
pass string
)
// IP address of the server aka "hub". Replace with your own info.
const serverIP = ""
+5 -4
View File
@@ -4,7 +4,6 @@
// You shall see "strict-transport-security" header in the response,
// this confirms communication is indeed over HTTPS
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
//
package main
import (
@@ -18,9 +17,11 @@ import (
"tinygo.org/x/drivers/wifinina"
)
// access point info
const ssid = ""
const pass = ""
var (
// access point info
ssid string
pass string
)
// IP address of the server aka "hub". Replace with your own info.
const server = "tinygo.org"
+5 -4
View File
@@ -3,7 +3,6 @@
//
// In other words:
// Your computer <--> UART0 <--> MCU <--> SPI <--> ESP32
//
package main
import (
@@ -15,9 +14,11 @@ import (
"tinygo.org/x/drivers/wifinina"
)
// access point info
const ssid = ""
const pass = ""
var (
// access point info
ssid string
pass string
)
// IP address of the server aka "hub". Replace with your own info.
const hubIP = ""
+5 -4
View File
@@ -3,7 +3,6 @@
// Arduino example:
//
// https://github.com/arduino-libraries/WiFiNINA/blob/master/examples/WiFiWebClientRepeating/
//
package main
import (
@@ -15,9 +14,11 @@ import (
"tinygo.org/x/drivers/wifinina"
)
// access point info
const ssid = ""
const pass = ""
var (
// access point info
ssid string
pass string
)
// IP address of the server aka "hub". Replace with your own info.
const server = "tinygo.org"