Skip to content

Commit 2325fe0

Browse files
committed
examples: change call to obtain connection status to match latest driver
Signed-off-by: deadprogram <[email protected]>
1 parent 09e2bb4 commit 2325fe0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/httpclient/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"image/color"
1212
"io"
1313
"machine"
14+
"strconv"
1415
"time"
1516

1617
"tinygo.org/x/tinyfont/proggy"
@@ -176,7 +177,7 @@ func connectToAP() {
176177
message("Connecting to " + ssid)
177178
adaptor.SetPassphrase(ssid, pass)
178179
for st, _ := adaptor.GetConnectionStatus(); st != wifinina.StatusConnected; {
179-
message("Connection status: " + st.String())
180+
message("Connection status: " + strconv.Itoa(int(st)))
180181
time.Sleep(1 * time.Second)
181182
st, _ = adaptor.GetConnectionStatus()
182183
}

0 commit comments

Comments
 (0)