We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adafruit_FONA/Adafruit_FONA.cpp
Line 153 in 4a556e1
The function was made, and an attempt to parse was complete, but never finished. It would be nice if implemented into library.
I used the code below for feather MO as interim
void updateRTC() { //Sets Internal M0 RTC from Structured ASCII msg from GSM Module char buffer[23]; fona.getTime(buffer, 23); rtc.setYear( ((buffer[1] - 48) * 10) + (buffer[2] - 48) ); rtc.setMonth( ((buffer[4] - 48) * 10) + (buffer[5] - 48) ); rtc.setDay( ((buffer[7] - 48) * 10) + (buffer[8] - 48) ); rtc.setHours( ((buffer[10] - 48) * 10) + (buffer[11] - 48) ); rtc.setMinutes( ((buffer[13] - 48) * 10) + (buffer[14] - 48) ); rtc.setSeconds( ((buffer[16] - 48) * 10) + (buffer[17] - 48) ); }
The text was updated successfully, but these errors were encountered:
Check https://github.com/botletics/SIM7000-LTE-Shield it might have better RTC support.
Sorry, something went wrong.
#76 from 2016 implements it, and it works perfectly for me on the FONA 3G. All it needs is to be merged in.
No branches or pull requests
Adafruit_FONA/Adafruit_FONA.cpp
Line 153 in 4a556e1
The function was made, and an attempt to parse was complete, but never finished. It would be nice if implemented into library.
I used the code below for feather MO as interim
void updateRTC() { //Sets Internal M0 RTC from Structured ASCII msg from GSM Module
char buffer[23];
fona.getTime(buffer, 23);
rtc.setYear( ((buffer[1] - 48) * 10) + (buffer[2] - 48) );
rtc.setMonth( ((buffer[4] - 48) * 10) + (buffer[5] - 48) );
rtc.setDay( ((buffer[7] - 48) * 10) + (buffer[8] - 48) );
rtc.setHours( ((buffer[10] - 48) * 10) + (buffer[11] - 48) );
rtc.setMinutes( ((buffer[13] - 48) * 10) + (buffer[14] - 48) );
rtc.setSeconds( ((buffer[16] - 48) * 10) + (buffer[17] - 48) );
}
The text was updated successfully, but these errors were encountered: