Skip to content

Instantly share code, notes, and snippets.

@joshbober
joshbober / gist:c9d61cc4f4079b43231b47a9f5468e40
Created September 10, 2021 16:58
Serial Monitor output, ReceiveSMS.ino with SAMD core 1.8.9
12:57:32.535 -> AT+CMGL="REC UNREAD"
12:57:32.535 -> OK
12:57:33.654 -> AT+CMGL="REC UNREAD"
12:57:33.654 -> OK
12:57:34.758 -> AT+CMGL="REC UNREAD"
12:57:34.758 -> +CMGL: 18,"REC UNREAD","+1##########",,"21/09/10,09:57:33-28"
Code change in Modem.cpp:
----------------------------------------------------
void ModemClass::poll()
{
while (_uart->available()) {
char c = _uart->read();
if (_debugPrint) {
_debugPrint->write(c);
Serial.print("["+(String)(_uart->available())+"]"); // Prints buffer size to SM after each char is read
@joshbober
joshbober / gist:9a9a01e35c540c0f4d4771276bfee0be
Created September 8, 2021 19:11
ReceiveSMS Serial Monitor output
15:09:53.939 -> SMS Messages Receiver
15:09:54.076 -> AT
15:09:54.076 -> OK
15:09:54.214 -> AT+CMEE=0
15:09:54.214 -> OK
15:09:54.398 -> AT+CFUN=0
15:09:54.535 -> OK