[MM] [PATCH] Adjust parsing of +CNUM response to permit spaces in the alphanumeric descriptor.



As described. This replaces a regexp of "?\S*"? , which doesn't match the string "Line 1" because of the embedded whitespace, with a somewhat more elaborate regular _expression_ that does. It also accommodates escaped quotes inside the quoted string.
(A more general "tokenize v.250 comma-separated response" function might be good to have here, but that's a larger project).

Fixes the OwnNumbers property on my Novatel E362 with a Verizon SIM.

    - Nathan

Attachment: 0001-Adjust-parsing-of-CNUM-response-to-permit-spaces-in-.patch
Description: Binary data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]