You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For reasons unbeknownst to me, it was crashing if the NIST sync was before the "begin" function. I didn't figure out why, but rearranging fixed it. The most frustrating thing is that if I turned on the extra print statements for debugging... it magically worked every time, but as soon as they were off again.. it crashed.
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -237,6 +237,8 @@ After defining your modem, set it up using one of these two commands, depending
237
237
- The DTRSleepType controls _how_ the modem is put to sleep between readings. Use "held" if the DTR pin is held HIGH to keep the modem awake, as with a Sodaq GPRSBee rev6. Use "pulsed" if the DTR pin is pulsed high and then low to wake the modem up, as with an Adafruit Fona or Sodaq GPRSBee rev4. Use "reverse" if the DTR pin is held LOW to keep the modem awake, as with all XBees. Use "always_on" if you do not want the library to control the modem power and sleep.
238
238
239
239
Once the modem has been set up, these functions are available:
240
+
-**on()** - Turns the modem on. Returns true if connection is successful.
241
+
-**off()** - Turns the modem off and empties the send and receive buffer. Returns true if connection is successful.
240
242
-**connectNetwork()** - Connects to the internet via WiFi or cellular network. Returns true if connection is successful.
241
243
-**disconnectNetwork()** - Disconnects from the network, if applicable.
242
244
-**connect(const char host, uint16_t port)** - Makes a TCP connection to a host url and port. (If you don't know the port, use "80".) Returns 1 if successful.
0 commit comments