Skip to content

Commit

Permalink
wait for buffer to fill
Browse files Browse the repository at this point in the history
  • Loading branch information
DomAmato committed Mar 6, 2021
1 parent d264e20 commit 6534ac4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Hologram/Network/Modem/SIM7000.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ def _is_pdp_context_active(self):
return False

self.command('+CIPSTATUS')
# wait for the buffer to fill up
time.sleep(0.5)
self.checkURC()
return self.network_state is NetworkState.CONNECTED

Expand Down

0 comments on commit 6534ac4

Please sign in to comment.