summaryrefslogtreecommitdiff
path: root/src/MTS_IO_HE910Radio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/MTS_IO_HE910Radio.cpp')
-rw-r--r--src/MTS_IO_HE910Radio.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/MTS_IO_HE910Radio.cpp b/src/MTS_IO_HE910Radio.cpp
index f548b4e..bc08932 100644
--- a/src/MTS_IO_HE910Radio.cpp
+++ b/src/MTS_IO_HE910Radio.cpp
@@ -37,4 +37,14 @@ HE910Radio::HE910Radio(const std::string& sHE910Model, const std::string& sPort)
}
-
+CellularRadio::CODE HE910Radio::setRxDiversity(const Json::Value& jArgs) {
+/* Command string for H5 radios: "AT#RXDIV" */
+ if (jArgs["enabled"].asString() != "1" && jArgs["enabled"].asString() != "0")
+ {
+ return FAILURE;
+ }
+ std::string sCmd = "AT#RXDIV=";
+ sCmd += jArgs["enabled"].asString();
+
+ return sendBasicCommand(sCmd);
+}