diff --git a/esp32/frozen/Pybytes/_pybytes.py b/esp32/frozen/Pybytes/_pybytes.py index de5697df4..14bb4b080 100644 --- a/esp32/frozen/Pybytes/_pybytes.py +++ b/esp32/frozen/Pybytes/_pybytes.py @@ -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 @@ -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: diff --git a/esp32/frozen/Pybytes/_pybytes_protocol.py b/esp32/frozen/Pybytes/_pybytes_protocol.py index 94c4d90bc..2628b4d07 100644 --- a/esp32/frozen/Pybytes/_pybytes_protocol.py +++ b/esp32/frozen/Pybytes/_pybytes_protocol.py @@ -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'] ) diff --git a/esp32/pycom_version.h b/esp32/pycom_version.h index 3b1c57995..d866697d7 100644 --- a/esp32/pycom_version.h +++ b/esp32/pycom_version.h @@ -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