diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/MTS_IO_CellularRadio.cpp | 8 | ||||
-rw-r--r-- | src/MTS_IO_CellularRadioFactory.cpp | 6 | ||||
-rw-r--r-- | src/MTS_IO_LE910EU1Radio.cpp | 41 |
3 files changed, 55 insertions, 0 deletions
diff --git a/src/MTS_IO_CellularRadio.cpp b/src/MTS_IO_CellularRadio.cpp index 569f8fc..1842c23 100644 --- a/src/MTS_IO_CellularRadio.cpp +++ b/src/MTS_IO_CellularRadio.cpp @@ -323,6 +323,9 @@ CellularRadio::CODE CellularRadio::convertModelToMtsShortCode(const std::string& } else if (sModel.find("LE910-EUG") == 0) { sCode = "LEU1"; eCode = SUCCESS; + } else if (sModel.find("LE910-EU1") == 0) { + sCode = "LEU1"; + eCode = SUCCESS; } else if (sModel.find("GE910") == 0) { sCode = "G3"; eCode = SUCCESS; @@ -392,6 +395,9 @@ CellularRadio::CODE CellularRadio::convertModelToType(const std::string& sModel, } else if (sModel.find("LE910-EUG") == 0) { sType = VALUE_TYPE_LTE; eCode = SUCCESS; + } else if (sModel.find("LE910-EU1") == 0) { + sType = VALUE_TYPE_LTE; + eCode = SUCCESS; } else if (sModel.find("ME910C1-NA") == 0) { sType = VALUE_TYPE_LTE; eCode = SUCCESS; @@ -1585,6 +1591,8 @@ std::string CellularRadio::extractModelFromResult(const std::string& sResult) { sModel = "LE910-SVG"; } else if(sResult.find("LE910-EUG") != std::string::npos) { sModel = "LE910-EUG"; + } else if(sResult.find("LE910-EU1") != std::string::npos) { + sModel = "LE910-EU1"; } else if(sResult.find("GE910") != std::string::npos) { sModel = "GE910"; } else if(sResult.find("DE910-DUAL") != std::string::npos) { diff --git a/src/MTS_IO_CellularRadioFactory.cpp b/src/MTS_IO_CellularRadioFactory.cpp index 7a3f513..5a490cc 100644 --- a/src/MTS_IO_CellularRadioFactory.cpp +++ b/src/MTS_IO_CellularRadioFactory.cpp @@ -34,6 +34,7 @@ #include <mts/MTS_IO_LE910NA1Radio.h> #include <mts/MTS_IO_LE910SVGRadio.h> #include <mts/MTS_IO_LE910EUGRadio.h> +#include <mts/MTS_IO_LE910EU1Radio.h> #include <mts/MTS_IO_ME910C1NARadio.h> #include <mts/MTS_IO_ME910C1NVRadio.h> #include <mts/MTS_IO_LE866A1JSRadio.h> @@ -51,6 +52,7 @@ CellularRadioFactory::CellularRadioFactory() { m_mCreationMap[LE910NA1Radio::MODEL_NAME] = &CellularRadioFactory::createLE910NA1; m_mCreationMap[LE910SVGRadio::MODEL_NAME] = &CellularRadioFactory::createLE910SVG; m_mCreationMap[LE910EUGRadio::MODEL_NAME] = &CellularRadioFactory::createLE910EUG; + m_mCreationMap[LE910EU1Radio::MODEL_NAME] = &CellularRadioFactory::createLE910EU1; m_mCreationMap[ME910C1NARadio::MODEL_NAME] = &CellularRadioFactory::createME910C1NA; m_mCreationMap[ME910C1NVRadio::MODEL_NAME] = &CellularRadioFactory::createME910C1NV; m_mCreationMap[GE910Radio::MODEL_NAME] = &CellularRadioFactory::createGE910; @@ -144,6 +146,10 @@ CellularRadio* CellularRadioFactory::createLE910EUG(const std::string& sPort) { return new LE910EUGRadio(sPort); } +CellularRadio* CellularRadioFactory::createLE910EU1(const std::string& sPort) { + return new LE910EU1Radio(sPort); +} + CellularRadio* CellularRadioFactory::createME910C1NA(const std::string& sPort) { return new ME910C1NARadio(sPort); } diff --git a/src/MTS_IO_LE910EU1Radio.cpp b/src/MTS_IO_LE910EU1Radio.cpp new file mode 100644 index 0000000..2e3593b --- /dev/null +++ b/src/MTS_IO_LE910EU1Radio.cpp @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2015 by Multi-Tech Systems + * + * This file is part of libmts-io. + * + * libmts-io is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * libmts-io is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with libmts-io. If not, see <http://www.gnu.org/licenses/>. + * + */ + +/*! + \file MTS_IO_LE910EU1Radio.cpp + \brief A brief description + \date Jan 19, 2015 + \author sgodinez + + A more elaborate description +*/ + + +#include <mts/MTS_IO_LE910EU1Radio.h> + +using namespace MTS::IO; + +const std::string LE910EU1Radio::MODEL_NAME("LE910-EU1"); + +LE910EU1Radio::LE910EU1Radio(const std::string& sPort) +: LE910Radio(MODEL_NAME, sPort) +{ + +} |