Skip to content

Commit 0c8fcfd

Browse files
committed
v1.1.0
1 parent 28f94db commit 0c8fcfd

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

code.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,15 @@
77
connection = Connection()
88
print("Connected!")
99

10-
# Turn off WiFi to save power:
11-
connection.close_wifi()
10+
# Sync time:
11+
connection.sync_time()
1212

13-
# Reconnect WiFi when ready:
14-
connection.connect_wifi()
13+
# If none, post Hello World:
14+
connection.post(Text("Hello World!"))
1515

1616
# Check for code updates from the server:
1717
connection.code_update()
1818

19-
# If none, post Hello World:
20-
connection.post(Text("Hello World!"))
21-
2219
# Get status:
2320
print("Getting status:")
2421
print(connection.get_status())

servercom/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "v1.0.0"
1+
__version__ = "v1.1.0"

servercom/implementations/circuitpy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def __init__(
155155
self.context.load_verify_locations(cadata=server_cert)
156156
self.connect_wifi()
157157

158-
def connect_wifi(self, attempts=10) -> None:
158+
def connect_wifi(self, attempts=50) -> None:
159159
"""Creates the wifi connection to the access point"""
160160
wifi.radio.enabled = True
161161
if self.v:
@@ -169,7 +169,7 @@ def connect_wifi(self, attempts=10) -> None:
169169
if self.v:
170170
print(e.with_traceback)
171171
attempts -= 1
172-
time.sleep(1)
172+
time.sleep(.1)
173173
if self.v:
174174
print("Initializing socket pool...")
175175
self.pool = socketpool.SocketPool(wifi.radio)

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.0.0
1+
v1.1.0

0 commit comments

Comments
 (0)