Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
pybytes 171
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-pycom committed Oct 28, 2021
1 parent 1b1e869 commit 7d11de9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion esp32/frozen/Pybytes/_pybytes.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import gc
from network import WLAN
from binascii import hexlify, a2b_base64
from machine import Timer, deepsleep, pin_sleep_wakeup, unique_id, pygate_init, RTC, pygate_debug_level, reset
from machine import Timer, deepsleep, pin_sleep_wakeup, unique_id, reset, RTC

try:
from periodical_pin import PeriodicalPin
Expand Down Expand Up @@ -289,6 +289,7 @@ def connect(self):
# PYGATE FIRMWARE VERSION
buf = None
try:
from machine import pygate_init, pygate_debug_level
with open('/flash/pybytes_pygate_config.json','r') as fp:
buf = fp.read()
except Exception as e:
Expand Down
5 changes: 3 additions & 2 deletions esp32/frozen/Pybytes/_pybytes_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,10 @@ def __process_recv_message(self, message):
self.deploy_new_release(body)

elif (message_type == constants.__TYPE_DEVICE_NETWORK_DEPLOY):
# allows for WiFi or LTE, no need to specify ssid/password as we're already connected
ota = WiFiOTA(
self.__conf['wifi']['ssid'],
self.__conf['wifi']['password'],
None,
None,
self.__conf['ota_server']['domain'],
self.__conf['ota_server']['port']
)
Expand Down
2 changes: 1 addition & 1 deletion esp32/pycom_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#define SIGFOX_VERSION_NUMBER "1.0.1"

#if (VARIANT == PYBYTES)
#define PYBYTES_VERSION_NUMBER "1.7.0"
#define PYBYTES_VERSION_NUMBER "1.7.1"
#endif

#ifdef PYGATE_ENABLED
Expand Down

0 comments on commit 7d11de9

Please sign in to comment.