diff options
author | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2020-08-06 14:06:19 +0300 |
---|---|---|
committer | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2020-08-06 14:06:19 +0300 |
commit | e1855057708468bc5383d948be70da7179730231 (patch) | |
tree | 87d441aa1ae2b7e138129c340463d4e64ffd04fe /include/mts/MTS_IO_ICellularRadio.h | |
parent | 96445eaa166dd8f4ba99014f5eea2c1146b9db80 (diff) | |
download | libmts-io-e1855057708468bc5383d948be70da7179730231.tar.gz libmts-io-e1855057708468bc5383d948be70da7179730231.tar.bz2 libmts-io-e1855057708468bc5383d948be70da7179730231.zip |
Quectel EG25-G Delta Radio Firmware Upgrade support - libmts-io implementation
Added waitResponse overloads to the public interface of ICellularRadio.
Diffstat (limited to 'include/mts/MTS_IO_ICellularRadio.h')
-rw-r--r-- | include/mts/MTS_IO_ICellularRadio.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/mts/MTS_IO_ICellularRadio.h b/include/mts/MTS_IO_ICellularRadio.h index e4456cc..61ffd20 100644 --- a/include/mts/MTS_IO_ICellularRadio.h +++ b/include/mts/MTS_IO_ICellularRadio.h @@ -88,6 +88,9 @@ namespace MTS { static std::string waitResponse(MTS::AutoPtr<MTS::IO::Connection>& apIo, IsNeedMoreData& isNeedMoreData, int32_t timeoutMillis = 100); + static std::string waitResponse(MTS::AutoPtr<MTS::IO::Connection>& apIo, + const std::vector<std::string>& vBail = DEFAULT_BAIL_STRINGS, + int32_t timeoutMillis = 100); static CODE test(MTS::AutoPtr<MTS::IO::Connection>& apIo, uint32_t timeoutSeconds = 30); static std::string extractModelFromResult(const std::string& sResult); @@ -551,6 +554,14 @@ namespace MTS { int32_t timeoutMillis = 100, const char& ESC = CR) = 0; + //! Wait for response from the radio without sending any data to it + virtual std::string waitResponse(const std::vector<std::string>& vBail = DEFAULT_BAIL_STRINGS, + int32_t timeoutMillis = 100) = 0; + + //! Wait for response from the radio without sending any data to it + virtual std::string waitResponse(IsNeedMoreData& isNeedMoreData, + int32_t timeoutMillis = 100) = 0; + }; } } |