summaryrefslogtreecommitdiff
path: root/include/mts/MTS_IO_ICellularRadio.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mts/MTS_IO_ICellularRadio.h')
-rw-r--r--include/mts/MTS_IO_ICellularRadio.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/mts/MTS_IO_ICellularRadio.h b/include/mts/MTS_IO_ICellularRadio.h
index 085c217..61ffd20 100644
--- a/include/mts/MTS_IO_ICellularRadio.h
+++ b/include/mts/MTS_IO_ICellularRadio.h
@@ -83,6 +83,15 @@ namespace MTS {
const std::vector<std::string>& vBail = DEFAULT_BAIL_STRINGS,
int32_t timeoutMillis = 100,
const char& ESC = CR);
+
+ //! Wait for response from the radio without sending any data to it
+ 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);
static std::string getCodeAsString(CODE code);
@@ -545,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;
+
};
}
}