Update adafruit_rockblock.py#31
Merged
Merged
Conversation
Recommend using the CRISX AT command to pull ring alerts because it includes a timestamp field, which will be added to the returned tuple. The timestamp can be monitored to check for recent ring alerts.
Contributor
Contributor
Author
|
I didn't make any changes to the parser line and it's worked as expected, a
3 tuple is returned. I've been running constantly with my branch for the
last 4 days without issue. I may provide more commits for a new function as
the ability to interrupt on a change of the ring indication timestamp has
been tremendously useful for knowing when to contact the satellite to
receive new messages cost efficiently.
…On Thu, Oct 10, 2024 at 10:16 AM Carter Nelson ***@***.***> wrote:
Have you tested this to make sure the parser line doesn't need any
updating?
return tuple(resp[1].strip().decode().split(":")[1].split(","))
Seems like it should nominally work since it just splits on the ,. So
will now be a 3 tuple instead of a 2 tuple.
image.png (view on web)
<https://github.com/user-attachments/assets/eecf90e3-760c-4b29-80ba-42ae197fa904>
—
Reply to this email directly, view it on GitHub
<#31 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAH353LRXNYRPYRDSFETGRLZ22D3HAVCNFSM6AAAAABPVH57SSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBVGIYTSMZVHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Respectfully,
Michael Weigand
301-351-9476
***@***.***
|
Contributor
Please submit that as a separate PR. For this PR, looks good as is. But please also update the function doc string to cover the new behavior for |
Contributor
Author
|
Will do. I’ll update the comments tonight for review.
Respectfully,
Michael Weigand
301-351-9476
***@***.***
…On Tue, Oct 15, 2024 at 9:15 AM Carter Nelson ***@***.***> wrote:
I may provide more commits for a new function as
the ability to interrupt on a change
Please submit that as a separate PR.
For this PR, looks good as is. But please also update the function doc
string to cover the new behavior for ring_indication
—
Reply to this email directly, view it on GitHub
<#31 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAH353J3AGYZJGT4ZGYW37TZ3UIQHAVCNFSM6AAAAABPVH57SSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJTHA4DQMJSGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
FoamyGuy
approved these changes
Jan 15, 2026
Contributor
FoamyGuy
left a comment
There was a problem hiding this comment.
I merged main to this branch and added info to the docstrings about the timestamp field now being returned.
I also made it return a 3-tuple of None instead of 2 when the response is not OK.
adafruit-adabot
pushed a commit
to adafruit/Adafruit_CircuitPython_Bundle
that referenced
this pull request
Jan 16, 2026
Updating https://github.com/adafruit/Adafruit_CircuitPython_RockBlock to 1.4.0 from 1.3.20: > Merge pull request adafruit/Adafruit_CircuitPython_RockBlock#31 from gr3mlin/patch-1 Updating https://github.com/adafruit/Adafruit_CircuitPython_Seesaw to 1.18.0 from 1.16.8: > Merge pull request adafruit/Adafruit_CircuitPython_seesaw#137 from victor1115/main > Merge pull request adafruit/Adafruit_CircuitPython_seesaw#141 from cfunseth/main
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Recommend using the CRISX AT command to pull ring alerts because it includes a timestamp field, which will be added to the returned tuple. The timestamp can be monitored to check for recent ring alerts.