Skip to content

Commit 57fe36d

Browse files
committed
Add burst of AT to lock autobaudrate
1 parent 6cfa93f commit 57fe36d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libraries/PPP/src/PPP.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,11 @@ bool PPPClass::begin(ppp_modem_model_t model, uint8_t uart_num, int baud_rate) {
299299
}
300300

301301
esp_modem_set_error_cb(_dce, _ppp_error_cb);
302+
303+
// Send burst of AT to lock auto baurate on modem
304+
for (int i = 0; i < 50; i++) {
305+
esp_modem_at(_dce, "AT", NULL, 10);
306+
}
302307

303308
/* Wait for Modem to respond */
304309
if (_pin_rst >= 0) {

0 commit comments

Comments
 (0)