From a96e729277d8455740023e031dfe62f79c86e104 Mon Sep 17 00:00:00 2001 From: gr3mlin Date: Wed, 9 Oct 2024 15:39:58 -0400 Subject: [PATCH] Update adafruit_rockblock.py 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. --- adafruit_rockblock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_rockblock.py b/adafruit_rockblock.py index c2ab5c9..e1c569a 100644 --- a/adafruit_rockblock.py +++ b/adafruit_rockblock.py @@ -295,7 +295,7 @@ def ring_indication(self) -> Tuple[Optional[str], ...]: Returns a tuple: (string, string) """ - resp = self._uart_xfer("+CRIS") + resp = self._uart_xfer("+CRISX") if resp[-1].strip().decode() == "OK": return tuple(resp[1].strip().decode().split(":")[1].split(",")) return (None,) * 2