diff options
Diffstat (limited to 'include/mts/MTS_IO_CellularRadio.h')
| -rw-r--r-- | include/mts/MTS_IO_CellularRadio.h | 27 | 
1 files changed, 27 insertions, 0 deletions
| diff --git a/include/mts/MTS_IO_CellularRadio.h b/include/mts/MTS_IO_CellularRadio.h index 4d1cd12..f32251c 100644 --- a/include/mts/MTS_IO_CellularRadio.h +++ b/include/mts/MTS_IO_CellularRadio.h @@ -72,6 +72,7 @@ namespace MTS {                  CODE getTime(std::string& sDate, std::string& sTime, std::string& sTimeZone) override;                  CODE getRoaming(bool& bRoaming) override;                  CODE getCellularMode(CELLULAR_MODES &networks) override; +                CODE getSelectedBandsRaw(std::string& sRawBands) override;                  CODE getSignalStrength(int32_t& iRssi) override;                  CODE getModemLocation(std::string& sLocation) override; @@ -223,6 +224,32 @@ namespace MTS {                   */                  virtual CODE getSimMncLength(uint8_t& iLength); +                /** +                 * @brief getCarrierFromSimMccMnc - get a carrier name based on the MCC/MNC values. +                 * +                 * @param sCarrier - a string to be filled with carrier based on the MCC/MNC values. +                 * +                 * @return CODE::SUCCESS when the read is completed successfully, +                 *         CODE::NOT_APPLICABLE when the modem doesn't support this feature, +                 *         CODE::NO_RESPONSE when the modem doesn't respond, +                 *         CODE::ERROR when the radio returns "ERROR" (SIM card removed, SIM card locked etc), +                 *         CODE::FAILURE otherwise (unexpected response, no data in SIM etc). +                 */ +                virtual CODE getCarrierFromSimMccMnc(std::string& sCarrier); + +                /** +                 * @brief getCarrierFromSimSpn - get a carrier name from SIM EFspn. +                 * +                 * @param sCarrier - a string to be filled with carrier obtained from SIM EFspn. +                 * +                 * @return CODE::SUCCESS when the read is completed successfully, +                 *         CODE::NOT_APPLICABLE when the modem doesn't support this feature, +                 *         CODE::NO_RESPONSE when the modem doesn't respond, +                 *         CODE::ERROR when the radio returns "ERROR" (SIM card removed, SIM card locked etc), +                 *         CODE::FAILURE otherwise (unexpected response, no data in SIM etc). +                 */ +                virtual CODE getCarrierFromSimSpn(std::string& sCarrier); +                  void initMipProfile(Json::Value& jData);                  bool splitAndAssign(const std::string& sLine, const std::string& sKey, Json::Value& jParent, const std::string& sJsonKey, Json::ValueType eType = Json::ValueType::stringValue); | 
