Skip to content

Commit

Permalink
examples: change call to obtain connection status to match latest driver
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Jun 11, 2023
1 parent 09e2bb4 commit 2325fe0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/httpclient/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"image/color"
"io"
"machine"
"strconv"
"time"

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

0 comments on commit 2325fe0

Please sign in to comment.