8000 Updated Pybytes scripts + updated pycom version · pycom/pycom-micropython-sigfox@52ece9c · GitHub
[go: up one dir, main page]

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

Commit 52ece9c

Browse files
author
iwahdan88
committed
Updated Pybytes scripts + updated pycom version
1 parent 2b28d49 commit 52ece9c

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

esp32/frozen/Pybytes/_main.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,11 @@
6767

6868
# Please put your USER code below this line
6969

70-
# SEND VIRTUAL VALUE
70+
# SEND SIGNAL
7171
# You can currently send Strings, Int32, Float32 and Tuples to pybytes using this method.
72-
# Soon you will be able to send Coordinates, Longs, Unsigned numerical types, and more.
73-
# pybytes.send_signal(pin, value)
72+
# pybytes.send_signal(signalNumber, value)
7473

75-
# SEND SENSOR DATA THROUGH VIRTUAL PINS
74+
# SEND SENSOR DATA THROUGH SIGNALS
7675
# # If you use a Pysense, some libraries are necessary to access its sensors
7776
# # you can find them here: https://github.com/pycom/pycom-libraries
7877
#

esp32/frozen/Pybytes/_pybytes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def send_signal(self, pin, value):
102102

103103
def send_virtual_pin_value(self, persistent, pin, value):
104104
print("This function is deprecated and will be removed in the future. Use send_signal(signalNumber, value)")
105-
self.send_signal(pin, [value])
105+
self.send_signal(pin, value)
106106

107107
def __periodical_pin_callback(self, periodical_pin):
108108
if (periodical_pin.pin_type == __PERIODICAL_PIN.TYPE_DIGITAL):

esp32/frozen/Pybytes/_pybytes_connection.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,15 @@ def connect_lte(self, reconnect=True, check_interval=0.5):
122122
try:
123123
from network import LTE
124124
time.sleep(3)
125-
print_debug(1, 'LTE init(carrier={})'.format(lte_cfg.get('carrier')))
125+
print_debug(1, 'LTE init(carrier={}, cid={})'.format(lte_cfg.get('carrier'), lte_cfg.get('cid', 1)))
126126
self.lte = LTE(carrier=lte_cfg.get('carrier')) # instantiate the LTE object
127-
print_debug(1, 'LTE attach(band={}, apn={})'.format(lte_cfg.get('band'), lte_cfg.get('apn')))
128-
self.lte.attach(band=lte_cfg.get('band'), apn=lte_cfg.get('apn')) # attach the cellular modem to a base station
127+
print_debug(1, 'LTE attach(band={}, apn={}, type={})'.format(lte_cfg.get('band'), lte_cfg.get('apn'), lte_cfg.get('type')))
128+
self.lte.attach(band=lte_cfg.get('band'), apn=lte_cfg.get('apn'), type=lte_cfg.get('type')) # attach the cellular modem to a base station
129129
while not self.lte.isattached():
130130
time.sleep(0.25)
131131
time.sleep(1)
132-
print_debug(1, 'LTE connect(cid={})'.format(lte_cfg.get('cid',1)))
133-
self.lte.connect(cid=lte_cfg.get('cid',1)) # start a data session and obtain an IP address
132+
print_debug(1, 'LTE connect()')
133+
self.lte.connect() # start a data session and obtain an IP address
134134
print_debug(1, 'LTE is_connected()')
135135
while not self.lte.isconnected():
136136
time.sleep(0.25)

esp32/pycom_version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
#ifndef VERSION_H_
1111
#define VERSION_H_
1212

13-
#define SW_VERSION_NUMBER "1.20.0.rc6"
13+
#define SW_VERSION_NUMBER "1.20.0.rc7"
1414

1515
#define LORAWAN_VERSION_NUMBER "1.0.2"
1616

1717
#define SIGFOX_VERSION_NUMBER "1.0.1"
1818

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

2323
#endif /* VERSION_H_ */

0 commit comments

Comments
 (0)
0