Skip to content

Commit adc6b62

Browse files
author
James Boulton
committed
simcom testing
1 parent 06bd6bc commit adc6b62

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

Examples/ex05_SIM767X.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
config_dict = dashio.decode_cfg64(cfg64)
2828
device = dashio.Device("aDeviceType", "aDeviceID", "Fred", cfg_dict=config_dict)
29-
lte_con = lte_767x_connection.Lte767xConnection("iot.lbo.gdsp.nz", "username", "password", 'dash.dashio.io', 8883, "/dev/cu.usbmodem56B30003703", 115200, None)
29+
lte_con = lte_767x_connection.Lte767xConnection("iot.gdsp.nz", "username", "password", 'dash.dashio.io', 8883, "/dev/tty.usbserial-143110", 115200, None)
3030
lte_con.add_device(device)
3131

3232
tcp_con = dashio.TCPConnection()

dashio/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class Device(threading.Thread):
6262
Remove a control from the device.
6363
6464
get_control(control_type: str, control_id: str):
65-
returns the instance of a controla leaded into the device.
65+
returns the instance of a control loaded into the device.
6666
6767
remove_control(control_type, control_id) :
6868
Removes the control from the device.

dashio/sim767x.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,7 @@ def _run_one_second_module_tasks(self, cookie: Any):
519519

520520
# LTE State
521521
if self._lte_state == LteState.MODULE_STARTUP:
522+
self.write_serial_buffer("AT+CGMM\r\n".encode())
522523
logger.debug("Startup Timer: %s.", self._disconnect_timer_s)
523524
self._disconnect_timer_s += 1
524525
if self._disconnect_timer_s > 60: # One min

0 commit comments

Comments
 (0)