Nick Stevens
eaf65ed98d
core: process SMS +CGMR response with regex
...
Variability in the response style from certain modems causes the parsing
of the +CGMR response to fail. For example, the Telit HE910 inserts an
empty string ("") in the second field of the response, causing the
sscanf implementation to fail.
This patch converts the parsing of the CGMR response to a regex that
allows for more flexibility and robustness, and adds unit tests around
the parsing call.
Signed-off-by: Nick Stevens <Nick.Stevens@digi.com >
2015-09-22 09:24:18 +02:00
..
2015-09-22 09:24:18 +02:00
2014-01-26 19:33:45 +01:00
2014-01-26 19:33:45 +01:00
2015-08-25 18:53:30 +02:00
2015-02-27 17:30:43 +01:00
2014-11-01 20:07:40 +01:00
2015-02-07 12:57:48 +01:00
2015-08-02 10:39:12 +02:00
2014-05-20 09:32:29 +02:00
2012-03-16 14:53:15 +01:00
2012-03-16 14:53:15 +01:00
2015-08-02 10:39:12 +02:00
2012-03-16 14:53:15 +01:00
2012-03-16 14:53:15 +01:00
2014-07-06 16:55:29 +02:00
2014-07-06 16:55:29 +02:00
2015-08-02 10:39:48 +02:00
2015-08-02 10:39:48 +02:00
2015-08-02 09:03:20 +02:00
2015-02-07 12:57:48 +01:00
2014-02-13 13:40:21 +01:00
2014-02-13 13:40:01 +01:00
2014-09-05 08:48:00 +02:00
2014-06-23 18:12:27 +02:00
2014-07-06 16:55:29 +02:00
2014-07-06 16:55:29 +02:00
2014-07-06 16:55:29 +02:00
2014-07-06 16:55:29 +02:00
2014-07-06 16:55:29 +02:00
2014-07-06 16:55:29 +02:00
2014-12-30 12:46:07 +01:00
2014-07-06 16:55:29 +02:00
2015-02-26 12:37:20 +01:00
2014-08-18 09:47:14 -05:00
2014-11-14 12:13:10 +01:00
2014-07-06 16:55:29 +02:00
2015-08-31 10:49:16 -05:00
2014-05-20 09:32:29 +02:00
2015-06-05 22:45:53 +02:00
2012-08-29 17:26:42 +02:00
2015-09-22 09:24:18 +02:00
2015-08-02 10:39:12 +02:00
2015-08-02 10:39:48 +02:00
2015-08-02 10:39:48 +02:00
2014-05-20 09:32:29 +02:00
2012-09-12 23:03:58 -05:00
2014-09-05 11:18:06 +02:00
2014-09-05 11:18:06 +02:00
2015-01-29 12:23:31 +01:00
2014-02-13 13:41:33 +01:00
2013-09-11 17:00:43 +02:00
2012-10-04 10:17:13 +02:00
2012-10-11 11:41:15 +02:00
2014-02-13 13:40:01 +01:00
2015-02-23 10:25:14 -06:00
2014-02-13 13:40:01 +01:00
2013-08-08 09:50:04 +02:00
2014-02-13 13:40:01 +01:00
2012-10-11 11:41:15 +02:00
2014-07-01 15:42:21 +02:00
2014-12-26 16:36:32 +01:00
2014-09-05 11:30:24 +02:00
2014-07-06 16:55:29 +02:00
2014-07-06 16:55:29 +02:00
2013-09-09 10:20:42 +02:00
2014-07-01 15:42:21 +02:00
2013-08-21 12:34:54 +02:00
2013-08-21 12:34:54 +02:00
2014-07-06 16:55:29 +02:00
2012-03-15 14:14:39 +01:00
2012-10-11 11:41:15 +02:00
2014-07-01 15:42:21 +02:00
2015-08-02 10:39:48 +02:00
2015-08-02 10:39:48 +02:00
2015-07-20 12:24:22 -05:00
2014-07-06 16:55:29 +02:00
2013-04-18 11:23:57 -05:00
2014-05-20 09:32:29 +02:00
2014-06-19 18:05:48 +02:00
2013-12-05 13:01:44 -06:00
2014-11-12 13:13:11 +01:00
2014-11-12 13:13:11 +01:00
2015-09-22 09:24:18 +02:00
2015-09-22 09:24:18 +02:00
2015-02-16 17:30:38 +01:00
2014-02-13 13:41:50 +01:00
2015-02-18 20:00:01 +01:00
2013-04-17 15:19:37 +02:00
2014-08-22 18:43:20 +02:00
2014-02-13 13:40:07 +01:00
2013-04-04 19:26:51 +02:00
2012-11-27 09:56:25 -06:00
2014-12-03 23:01:13 +01:00
2014-09-05 09:54:55 +02:00
2014-12-30 12:43:14 +01:00
2014-02-13 13:40:04 +01:00
2014-02-13 13:41:28 +01:00
2014-02-13 13:40:55 +01:00
2014-05-20 09:32:29 +02:00
2014-02-13 13:39:54 +01:00
2014-10-15 18:29:18 +02:00
2014-02-13 13:40:44 +01:00
2014-10-07 16:01:54 -05:00
2014-02-13 13:40:47 +01:00
2014-06-23 18:12:27 +02:00
2014-06-23 18:12:27 +02:00
2012-08-06 20:06:46 +02:00
2012-08-06 20:06:46 +02:00
2013-06-25 11:48:43 +02:00
2013-04-04 19:26:51 +02:00
2014-12-30 12:46:07 +01:00
2014-07-06 16:55:29 +02:00
2014-07-06 16:55:29 +02:00
2014-07-06 16:55:29 +02:00
2015-02-07 12:57:48 +01:00
2015-02-07 12:57:48 +01:00
2015-02-07 12:57:48 +01:00
2014-07-06 16:55:29 +02:00
2014-07-06 16:55:29 +02:00
2014-12-30 12:46:07 +01:00
2014-07-06 16:55:29 +02:00
2013-10-25 19:47:19 +02:00
2015-09-22 09:24:18 +02:00
2014-05-20 09:32:29 +02:00
2013-10-25 19:47:19 +02:00
2013-10-25 19:47:18 +02:00
2013-10-25 19:47:19 +02:00
2014-07-06 16:55:29 +02:00
2014-07-06 16:55:29 +02:00
2015-02-07 12:57:48 +01:00