Skip to content
New issue

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

Update adafruit_rockblock.py #31

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

gr3mlin
Copy link

@gr3mlin gr3mlin commented Oct 9, 2024

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.

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.
@caternuson
Copy link
Contributor

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

@gr3mlin
Copy link
Author

gr3mlin commented Oct 15, 2024 via email

@caternuson
Copy link
Contributor

caternuson commented Oct 15, 2024

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

@gr3mlin
Copy link
Author

gr3mlin commented Oct 15, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants