840f2e40b5
This commit adds support for partial matches for the modem_chat module. A match is a combination of an expected response to a request along with delimiters to use and a handler for the parsed response. The usual behavior of the modem_chat script is to continue to the next step when any expected response is received. The partial flag indicates that the script should not proceed to the next step if the response matches the match. This is useful for commands which respond with an unspecified number of lines, followed by an "OK". This flag allows the script to essentially run in a "while" loop until OK is received. Along with this addition, a more scalable macro for initializing the modem_chat match struct, MODEM_CHAT_MATCH_INITIALIZER(). Without this macro, we will need 4 different macros to initialize the 4 variants of a chat_match, and 8 when the next feature is added... Signed-off-by: Bjarki Arge Andreasen <bjarkix123@gmail.com> |
||
---|---|---|
.. | ||
backends | ||
CMakeLists.txt | ||
Kconfig | ||
modem_chat.c | ||
modem_cmux.c | ||
modem_pipe.c | ||
modem_ppp.c |