diff options
Diffstat (limited to 'src/MTS_IO_CellularRadio.cpp')
| -rw-r--r-- | src/MTS_IO_CellularRadio.cpp | 35 | 
1 files changed, 35 insertions, 0 deletions
| diff --git a/src/MTS_IO_CellularRadio.cpp b/src/MTS_IO_CellularRadio.cpp index 50fdf5c..26d9f43 100644 --- a/src/MTS_IO_CellularRadio.cpp +++ b/src/MTS_IO_CellularRadio.cpp @@ -1008,6 +1008,24 @@ ICellularRadio::CODE CellularRadio::updateFumo(const Json::Value&, UpdateCb&) {      return NOT_APPLICABLE;  } +ICellularRadio::CODE CellularRadio::uploadDeltaFirmwareFile(int, ICellularRadio::UpdateCb&) { +    printTrace("%s| Upload Delta Firmware Upgrade File: not applicable", m_sName.c_str()); + +    return NOT_APPLICABLE; +} + +ICellularRadio::CODE CellularRadio::removeDeltaFirmwareFile() { +    printTrace("%s| Remove Delta Firmware Upgrade File: not applicable", m_sName.c_str()); + +    return NOT_APPLICABLE; +} + +ICellularRadio::CODE CellularRadio::applyDeltaFirmwareFile(ICellularRadio::UpdateCb&) { +    printTrace("%s| Apply Delta Firmware Upgrade File: not applicable", m_sName.c_str()); + +    return NOT_APPLICABLE; +} +  ICellularRadio::CODE CellularRadio::resetHfa(const Json::Value&, UpdateCb&) {      printTrace("%s| HFA Reset", m_sName.c_str()); @@ -1054,6 +1072,23 @@ std::string CellularRadio::sendCommand(const std::string& sCmd, MTS::IO::Cellula      return ICellularRadio::sendCommand(m_apIo, sCmd, isNeedMoreData, timeoutMillis, ESC);  } +ICellularRadio::CODE CellularRadio::sendData(const char* pData, size_t nBytes) { +    if(m_apIo.isNull()) { +        printError("RADIO| IO is not set in sendData"); +        return ERROR; +    } + +    int32_t iResult; +    iResult = m_apIo->write(pData, nBytes); + +    if(iResult == -1) { +        printError("RADIO| Failed to send data to radio"); +        return ERROR; +    } + +    return SUCCESS; +} +  bool CellularRadio::splitAndAssign(const std::string& sLine, const std::string& sKey, Json::Value& jParent, const std::string& sJsonKey,  Json::ValueType eType) {      std::vector<std::string> vParts = MTS::Text::split(sLine, ":", 2); | 
