Home › Forums › Mayfly Data Logger › uBee R410 setup issues › Reply To: uBee R410 setup issues
2020-01-10 at 5:28 PM
#13594
Now it’s the asynchronous open that’s causing trouble. That *should* be blocking. The program should not continue until the URC arrives. I will need to test that more.
Anyway, another change in TinyGSM:
C++
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
// Use an asynchronous open to reduce the number of terminal freeze-ups // This is still blocking until the URC arrives // The SARA-R410M-02B with firmware revisions prior to L0.0.00.00.05.08 // has a nasty habit of locking up when opening a socket, especially if // the cellular service is poor. // NOT supported on SARA-R404M / SARA-R410M-01B // sendAT(GF("+USOCO="), *mux, ",\"", host, "\",", port, ",1"); <----------------------------- Comment out this section // waitResponse(timeout_ms, GF(GSM_NL "+UUSOCO: ")); // stream.readStringUntil(',').toInt(); // skip repeated mux // int connection_status = stream.readStringUntil('\n').toInt(); // return (0 == connection_status); // use synchronous open <----------------------------- Enable this section sendAT(GF("+USOCO="), *mux, ",\"", host, "\",", port, ",0"); int rsp = waitResponse(timeout_ms); return (1 == rsp); |