8000 pybytes 171 · pycom/pycom-micropython-sigfox@7d11de9 · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 7d11de9

Browse files
committed
pybytes 171
1 parent 1b1e869 commit 7d11de9

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

esp32/frozen/Pybytes/_pybytes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import gc
1515
from network import WLAN
1616
from binascii import hexlify, a2b_base64
17-
from machine import Timer, deepsleep, pin_sleep_wakeup, unique_id, pygate_init, RTC, pygate_debug_level, reset
17+
from machine import Timer, deepsleep, pin_sleep_wakeup, unique_id, reset, RTC
1818

1919
try:
2020
from periodical_pin import PeriodicalPin
@@ -289,6 +289,7 @@ def connect(self):
289289
# PYGATE FIRMWARE VERSION
290290
buf = None
291291
try:
292+
from machine import pygate_init, pygate_debug_level
292293
with open('/flash/pybytes_pygate_config.json','r') as fp:
293294
buf = fp.read()
294295
except Exception as e:

esp32/frozen/Pybytes/_pybytes_protocol.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,10 @@ def __process_recv_message(self, message):
201201
self.deploy_new_release(body)
202202

203203
elif (message_type == constants.__TYPE_DEVICE_NETWORK_DEPLOY):
204+
# allows for WiFi or LTE, no need to specify ssid/password as we're already connected
204205
ota = WiFiOTA(
205-
self.__conf['wifi']['ssid'],
206-
self.__conf['wifi']['password'],
206+
None,
207+
None,
207208
self.__conf['ota_server']['domain'],
208209
self.__conf['ota_server']['port']
209210
)

esp32/pycom_version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#define SIGFOX_VERSION_NUMBER "1.0.1"
1818

1919
#if (VARIANT == PYBYTES)
20-
#define PYBYTES_VERSION_NUMBER "1.7.0"
20+
#define PYBYTES_VERSION_NUMBER "1.7.1"
2121
#endif
2222

2323
#ifdef PYGATE_ENABLED

0 commit comments

Comments
 (0)
0