From f5ca8101a058cc8fa70f7aa9a6e5797fd193da2d Mon Sep 17 00:00:00 2001 From: Fabio Pintus Date: Fri, 8 Oct 2021 12:40:45 +0200 Subject: [PATCH] add GNSS utility class, minor code cleanups --- CHANGELOG | 4 + .../ChooseRadioAccessTechnology_example.ino | 4 +- library.properties | 2 +- src/GPRS.cpp | 4 +- src/GPRS.h | 11 +- src/TLT.cpp | 2 +- src/TLT.h | 10 +- src/TLTClient.cpp | 8 +- src/TLTClient.h | 9 +- src/TLTFileUtils.cpp | 7 +- src/TLTFileUtils.h | 9 +- src/TLTGNSS.cpp | 164 ++++++++++++++++++ src/TLTGNSS.h | 83 +++++++++ src/TLTMDM.h | 25 +-- src/TLTPIN.cpp | 9 +- src/TLTPIN.h | 9 +- src/TLTSMS.cpp | 37 +++- src/TLTSMS.h | 10 +- src/TLTSSLClient.cpp | 10 +- src/TLTSSLClient.h | 11 +- src/TLTScanner.cpp | 2 +- src/TLTScanner.h | 2 +- src/TLTSocketBuffer.cpp | 5 +- src/TLTSocketBuffer.h | 9 +- src/TLTUDP.cpp | 7 +- src/TLTUDP.h | 9 +- 26 files changed, 370 insertions(+), 92 deletions(-) create mode 100644 src/TLTGNSS.cpp create mode 100644 src/TLTGNSS.h diff --git a/CHANGELOG b/CHANGELOG index 7d14e53..dbc6971 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,9 @@ TLT 0.0.0 - ????.??.?? +TLT 1.1.0 - 2021.10.08 + +* Add GNSS class utility + TLT 1.0.0 - 2021.09.27 * Initial release \ No newline at end of file diff --git a/examples/ChooseRadioAccessTechnology_example/ChooseRadioAccessTechnology_example.ino b/examples/ChooseRadioAccessTechnology_example/ChooseRadioAccessTechnology_example.ino index 6c18dcc..5e7bd03 100644 --- a/examples/ChooseRadioAccessTechnology_example/ChooseRadioAccessTechnology_example.ino +++ b/examples/ChooseRadioAccessTechnology_example/ChooseRadioAccessTechnology_example.ino @@ -19,7 +19,7 @@ - CAT-M1 and NB-IoT (preferred) (3) @version - 1.0.0 + 1.1.0 @note @@ -30,7 +30,7 @@ 09/23/2021 */ -#include "TLTMDM.h" +#include ME310 myME310; diff --git a/library.properties b/library.properties index 4e8b7b2..72452a6 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=TLT -version=1.0.0 +version=1.1.0 author=Telit maintainer=Telit sentence=Provides network communication capabilities over ME310G1 Telit module. diff --git a/src/GPRS.cpp b/src/GPRS.cpp index 9fe9ddb..5a34f8f 100644 --- a/src/GPRS.cpp +++ b/src/GPRS.cpp @@ -12,7 +12,7 @@ @version - 1.0.0 + 1.1.0 @note Dependencies: @@ -24,7 +24,7 @@ @date 08/03/2021 */ -#include "GPRS.h" +#include /*! \enum GPRS status \brief Enum of GPRS status of internal state machine diff --git a/src/GPRS.h b/src/GPRS.h index 3e4857f..f3a0276 100644 --- a/src/GPRS.h +++ b/src/GPRS.h @@ -1,5 +1,6 @@ -/*===============================================================================================*/ -/* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */ +/*Copyright (C) 2021 Telit Communications S.p.A. Italy - All Rights Reserved.*/ +/* See LICENSE file in the project root for full license information. */ + /*! @file GPRS.h @@ -10,7 +11,7 @@ @version - 1.0.0 + 1.1.0 @note Dependencies: @@ -27,8 +28,8 @@ #define __GPRS__H /* Include files ================================================================================*/ #include -#include "ME310.h" -#include "TLT.h" +#include +#include /* Using namespace ================================================================================*/ using namespace std; diff --git a/src/TLT.cpp b/src/TLT.cpp index be71830..96dfc64 100644 --- a/src/TLT.cpp +++ b/src/TLT.cpp @@ -136,6 +136,7 @@ TLT_NetworkStatus_t TLT::begin(const char* pin, const char* ipProt, const char* if (synchronous) { unsigned long start = millis(); + while (ready() == 0) { if (_timeout && !((millis() - start) < _timeout)) @@ -222,7 +223,6 @@ int TLT::ready() { return 0; } - switch (_readyState) { case READY_STATE_SET_ERROR_DISABLED: diff --git a/src/TLT.h b/src/TLT.h index 7b8f869..367395d 100644 --- a/src/TLT.h +++ b/src/TLT.h @@ -1,5 +1,6 @@ -/*===============================================================================================*/ -/* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */ +/*Copyright (C) 2021 Telit Communications S.p.A. Italy - All Rights Reserved.*/ +/* See LICENSE file in the project root for full license information. */ + /*! @file TLT.h @@ -10,7 +11,7 @@ This class managements the most important functionality of connection function. @version - 1.0.0 + 1.1.0 @note Dependencies: @@ -27,11 +28,10 @@ #ifndef __TLT__H #define __TLT__H /* Include files ================================================================================*/ -#include "ME310.h" #include #include #include - +#include /* Using namespace ================================================================================*/ using namespace std; using namespace me310; diff --git a/src/TLTClient.cpp b/src/TLTClient.cpp index cb2471b..75bc3f5 100644 --- a/src/TLTClient.cpp +++ b/src/TLTClient.cpp @@ -1,4 +1,4 @@ -/*Copyright (C) 2020 Telit Communications S.p.A. Italy - All Rights Reserved.*/ +/*Copyright (C) 2021 Telit Communications S.p.A. Italy - All Rights Reserved.*/ /* See LICENSE file in the project root for full license information. */ /** @@ -12,7 +12,7 @@ @version - 1.0.0 + 1.1.0 @note Dependencies: @@ -26,9 +26,9 @@ @date 07/28/2021 */ -#include "TLTSocketBuffer.h" +#include -#include "TLTClient.h" +#include /*! \enum Client state machine status \brief Enum of client status of internal state machine diff --git a/src/TLTClient.h b/src/TLTClient.h index 30b3341..5789582 100644 --- a/src/TLTClient.h +++ b/src/TLTClient.h @@ -1,5 +1,6 @@ -/*===============================================================================================*/ -/* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */ +/*Copyright (C) 2021 Telit Communications S.p.A. Italy - All Rights Reserved.*/ +/* See LICENSE file in the project root for full license information. */ + /*! @file TLTClient.h @@ -10,7 +11,7 @@ @version - 1.0.0 + 1.1.0 @note Dependencies: @@ -28,7 +29,7 @@ #ifndef __TLTCLIENT__H #define __TLTCLIENT__H /* Include files ================================================================================*/ -#include "ME310.h" +#include #include /* Using namespace ================================================================================*/ diff --git a/src/TLTFileUtils.cpp b/src/TLTFileUtils.cpp index ed6e03f..7e5d77a 100644 --- a/src/TLTFileUtils.cpp +++ b/src/TLTFileUtils.cpp @@ -1,4 +1,4 @@ -/*Copyright (C) 2020 Telit Communications S.p.A. Italy - All Rights Reserved.*/ +/*Copyright (C) 2021 Telit Communications S.p.A. Italy - All Rights Reserved.*/ /* See LICENSE file in the project root for full license information. */ /** @@ -12,13 +12,12 @@ @version - 1.0.0 + 1.1.0 @note Dependencies: ME310.h TLTUtils.h - Modem.h @author @@ -28,7 +27,7 @@ */ -#include "TLTFileUtils.h" +#include TLTFileUtils::TLTFileUtils(ME310* me310, bool debug) : _count(0), _files(""), _debug(debug) { diff --git a/src/TLTFileUtils.h b/src/TLTFileUtils.h index 86c8d21..19d266b 100644 --- a/src/TLTFileUtils.h +++ b/src/TLTFileUtils.h @@ -1,5 +1,6 @@ -/*===============================================================================================*/ -/* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */ +/*Copyright (C) 2021 Telit Communications S.p.A. Italy - All Rights Reserved.*/ +/* See LICENSE file in the project root for full license information. */ + /*! @file TLTFileUtils.h @@ -10,7 +11,7 @@ @version - 1.0.0 + 1.1.0 @note Dependencies: @@ -29,7 +30,7 @@ #pragma once /* Include files ================================================================================*/ -#include "ME310.h" +#include #include /* Using namespace ================================================================================*/ using namespace std; diff --git a/src/TLTGNSS.cpp b/src/TLTGNSS.cpp new file mode 100644 index 0000000..b75f357 --- /dev/null +++ b/src/TLTGNSS.cpp @@ -0,0 +1,164 @@ +/*Copyright (C) 2021 Telit Communications S.p.A. Italy - All Rights Reserved.*/ +/* See LICENSE file in the project root for full license information. */ + +/** + @file + TLTGNSS.cpp + + @brief + + + @details + + + @version + 1.0.0 + + @note + Dependencies: + TLTGNSS + @author + + + @author + Cristina Desogus + + @date + 09/30/2021 +*/ + +#include +//!\brief Class Constructor +/*! \details +Constructor + * \param me310 pointer of ME310 + * \param nmea NMEA flag + */ +TLTGNSS::TLTGNSS(ME310* me310, bool nmea) : _nmea(nmea) +{ + _me310 = me310; +} + +//! \brief Sets GNSS Configuration +/*! \details +This method sets GNSS configurations. + * \return return 1 if alive, else 0. + */ +bool TLTGNSS::setGNSSConfiguration(void) +{ + _me310->read_gnss_configuration(); + _rc = _me310->gnss_configuration(2,1); + if(_rc == ME310::RETURN_VALID) + { + _me310->module_reboot(); + } + + delay(10000); + _rc = _me310->gnss_configuration(3,0); + if(_rc == ME310::RETURN_VALID) + { + _me310->read_gnss_configuration(); + delay(5000); + _rc = _me310->gnss_controller_power_management(1); + + if( _rc == ME310::RETURN_VALID ) + { + if (_nmea) + { + _rc = _me310->gnss_nmea_extended_data_configuration(0,1,1,0,0,0,0,0,0,0,0,1,0); + + if(_rc == ME310::RETURN_VALID) + { + _rc = _me310->gnss_nmea_data_configuration(2,1,1,1,1,1,1); + if(_rc == ME310::RETURN_VALID) + { + return true; + } + else + { + return false; + } + } + } + return true; + } + else + { + return false; + } + } + else + { + return false; + } +} + +bool TLTGNSS::unsetGNSSConfiguration() +{ + _rc = _me310->gnss_controller_power_management(0); + if(_rc == ME310::RETURN_VALID) + { + _rc = _me310->gnss_configuration(3,1); + delay(5000); + return true; + } + else + { + return false; + } +} + + +GNSSInfo TLTGNSS::getGNSSData() +{ + GNSSInfo tmpGNSSData; + + int i = 0; + String tmpData; + _rc = _me310->gps_get_acquired_position(); + if(_rc == ME310::RETURN_VALID) + { + while(_me310->buffer_cstr(i) != NULL) + { + tmpData = (char*)_me310->buffer_cstr(i); + if(tmpData.startsWith("$GPSACP:")) + { + int pos1 = tmpData.indexOf(":"); + int pos2 = tmpData.indexOf(",", pos1 + 1); + tmpGNSSData.utc = tmpData.substring(pos1, pos2); + + pos1 = tmpData.indexOf(",", pos2 + 1); + tmpGNSSData.latitude = tmpData.substring(pos2+1, pos1); + + pos2 = tmpData.indexOf(",", pos1 + 1); + tmpGNSSData.longitude = tmpData.substring(pos1+1, pos2); + + pos1 = tmpData.indexOf(",", pos2 + 1); + tmpGNSSData.hdop = tmpData.substring(pos2+1, pos1); + + pos2 = tmpData.indexOf(",", pos1 + 1); + tmpGNSSData.altitude = tmpData.substring(pos1+1, pos2); + + pos1 = tmpData.indexOf(",", pos2 + 1); + tmpGNSSData.fix = tmpData.substring(pos2+1, pos1); + + pos2 = tmpData.indexOf(",", pos1 + 1); + tmpGNSSData.cog = tmpData.substring(pos1+1, pos2); + + pos1 = tmpData.indexOf(",", pos2 + 1); + tmpGNSSData.spkm = tmpData.substring(pos2+1, pos1); + + pos2 = tmpData.indexOf(",", pos1 + 1); + tmpGNSSData.spkn = tmpData.substring(pos1+1, pos2); + + pos1 = tmpData.indexOf(",", pos2 + 1); + tmpGNSSData.date = tmpData.substring(pos2+1, pos1); + + tmpGNSSData.num_sat = tmpData.substring(pos1 + 1); + break; + } + i++; + } + } + return tmpGNSSData; +} \ No newline at end of file diff --git a/src/TLTGNSS.h b/src/TLTGNSS.h new file mode 100644 index 0000000..0031cc6 --- /dev/null +++ b/src/TLTGNSS.h @@ -0,0 +1,83 @@ +/*===============================================================================================*/ +/* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */ +/*! + @file + TLTGNSS.h + + @brief + Management GNSS functionality using library ME310 Telit Modem + @details + The class implements the typical functionalities of GNSS.\n + + @version + 1.0.0 + + @note + Dependencies: + ME310.h + string.h + Arduino.h + + @author + Cristina Desogus + + @date + 09/30/2021 +*/ + +#ifndef __TLTGNSS__H +#define __TLTGNSS__H + +/* Include files ================================================================================*/ +#include "ME310.h" +#include +#include +/* Using namespace ================================================================================*/ +using namespace std; +using namespace me310; + +/* Define ========================================================================================*/ + +/* Class definition ================================================================================*/ + +/*! \struct GNSS Information + \brief GNSS information + +*/ +struct GNSSInfo +{ + String utc; + String latitude; + String longitude; + String hdop; + String altitude; + String fix; + String cog; + String spkm; + String spkn; + String date; + String num_sat; +}; + +/*! \class TLTGNSS + \brief Management GNSS functionality + \details + The class implements the GNSS functionalities.\n +*/ +class TLTGNSS +{ + public: + TLTGNSS(ME310* me310, bool nmea = false); + ~TLTGNSS(){} + bool setGNSSConfiguration(); + bool unsetGNSSConfiguration(); + GNSSInfo getGNSSData(); + + private: + + bool _nmea; + ME310* _me310; + ME310::return_t _rc; +}; + +#endif //__TLTGNSS__H \ No newline at end of file diff --git a/src/TLTMDM.h b/src/TLTMDM.h index 47d2b39..acb817b 100644 --- a/src/TLTMDM.h +++ b/src/TLTMDM.h @@ -1,6 +1,6 @@ +/*Copyright (C) 2021 Telit Communications S.p.A. Italy - All Rights Reserved.*/ +/* See LICENSE file in the project root for full license information. */ -/*===============================================================================================*/ -/* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */ /*! @file TLTMDM.h @@ -11,7 +11,7 @@ @version - 1.0.0 + 1.1.0 @note Dependencies: @@ -30,15 +30,16 @@ /* Include files ================================================================================*/ -#include "TLT.h" -#include "TLTSMS.h" -#include "GPRS.h" -#include "TLTClient.h" -#include "TLTScanner.h" -#include "TLTPIN.h" -#include "TLTSSLClient.h" -#include "TLTUDP.h" -#include "TLTFileUtils.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include /* Using namespace ================================================================================*/ #endif //__TLTMDM__H \ No newline at end of file diff --git a/src/TLTPIN.cpp b/src/TLTPIN.cpp index 0d5a965..32abc43 100644 --- a/src/TLTPIN.cpp +++ b/src/TLTPIN.cpp @@ -1,6 +1,7 @@ -/*Copyright (C) 2020 Telit Communications S.p.A. Italy - All Rights Reserved.*/ +/*Copyright (C) 2021 Telit Communications S.p.A. Italy - All Rights Reserved.*/ /* See LICENSE file in the project root for full license information. */ + /** @file TLTPIN.cpp @@ -12,7 +13,7 @@ @version - 1.0.0 + 1.1.0 @note Dependencies: @@ -27,8 +28,8 @@ 08/02/2021 */ -#include "ME310.h" -#include "TLTPIN.h" +#include +#include //!\brief Class Constructor /*! \details diff --git a/src/TLTPIN.h b/src/TLTPIN.h index f8b6873..b63063b 100644 --- a/src/TLTPIN.h +++ b/src/TLTPIN.h @@ -1,5 +1,6 @@ -/*===============================================================================================*/ -/* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */ +/*Copyright (C) 2021 Telit Communications S.p.A. Italy - All Rights Reserved.*/ +/* See LICENSE file in the project root for full license information. */ + /*! @file TLTPIN.h @@ -10,7 +11,7 @@ @version - 1.0.0 + 1.1.0 @note Dependencies: @@ -27,7 +28,7 @@ #ifndef __TLTPIN__H #define __TLTPIN__H /* Include files ================================================================================*/ -#include "ME310.h" +#include #include /* Using namespace ================================================================================*/ using namespace std; diff --git a/src/TLTSMS.cpp b/src/TLTSMS.cpp index b46508f..f1a261f 100644 --- a/src/TLTSMS.cpp +++ b/src/TLTSMS.cpp @@ -1,6 +1,7 @@ -/*Copyright (C) 2020 Telit Communications S.p.A. Italy - All Rights Reserved.*/ +/*Copyright (C) 2021 Telit Communications S.p.A. Italy - All Rights Reserved.*/ /* See LICENSE file in the project root for full license information. */ + /** @file TLTSMS.cpp @@ -13,7 +14,7 @@ In particular: send and read SMS. @version - 1.0.0 + 1.1.0 @note Dependencies: @@ -26,7 +27,7 @@ 08/02/2021 */ -#include "TLTSMS.h" +#include #define NYBBLETOHEX(x) ((x)<=9?(x)+'0':(x)-10+'A') #define HEXTONYBBLE(x) ((x)<='9'?(x)-'0':(x)+10-'A') @@ -224,7 +225,7 @@ This method add the destination address in _toBuffer. int TLTSMS::beginSMS(const char* to) { setCharset(); - + _toBuffer.remove(0, _toBuffer.length()); if (_charset==SMS_CHARSET_UCS2 && *to == '+') { _toBuffer += '0'; @@ -295,18 +296,17 @@ This method ends SMS and sends it. int TLTSMS::endSMS() { int r; - if (_smsTxActive) { // Echo remaining content of UTF8 buffer, empty if no conversion - _indexUTF8 = 0; + _indexUTF8 = 0; char toda[] = "145"; - _me310->send_short_message(_toBuffer.c_str(), toda, (char*) _dataBuffer.c_str(),ME310::TOUT_3SEC); + _rc = _me310->send_short_message(_toBuffer.c_str(), toda, (char*) _dataBuffer.c_str(),ME310::TOUT_3SEC); if (!_synch) { - r = moduleReady(); + //_rc = moduleReady(); } - return r; + return _rc; } else { @@ -586,3 +586,22 @@ int TLTSMS::moduleReady() return 0; } } + +//!\brief Sets message format. +/*! \details +This method sets the format of SMS messages to be used. + *\param value 0 if is in PDU mode, 1 if is in text mode. + *\return returns true if success, false if error. + */ +bool TLTSMS::setMessageFormat(int value) +{ + _rc = _me310->message_format(value); + if(_rc == ME310::RETURN_VALID) + { + return true; + } + else + { + return false; + } +} \ No newline at end of file diff --git a/src/TLTSMS.h b/src/TLTSMS.h index dc3d74c..19b7f74 100644 --- a/src/TLTSMS.h +++ b/src/TLTSMS.h @@ -1,5 +1,6 @@ -/*===============================================================================================*/ -/* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */ +/*Copyright (C) 2021 Telit Communications S.p.A. Italy - All Rights Reserved.*/ +/* See LICENSE file in the project root for full license information. */ + /*! @file TLTSMS.h @@ -11,7 +12,7 @@ In particular: send and read SMS. @version - 1.0.0 + 1.1.0 @note Dependencies: @@ -30,7 +31,7 @@ #define __TLTSMS__H /* Include files ================================================================================*/ -#include "ME310.h" +#include #include #include /* Using namespace ================================================================================*/ @@ -66,6 +67,7 @@ class TLTSMS : public Stream void flush(); void clean(int flag = TLT_SMS_CLEAR_READ_SENT); size_t print(const String &); + bool setMessageFormat(int value); ~TLTSMS(){} private: diff --git a/src/TLTSSLClient.cpp b/src/TLTSSLClient.cpp index 9cdbeaa..6b797c9 100644 --- a/src/TLTSSLClient.cpp +++ b/src/TLTSSLClient.cpp @@ -1,4 +1,4 @@ -/*Copyright (C) 2020 Telit Communications S.p.A. Italy - All Rights Reserved.*/ +/*Copyright (C) 2021 Telit Communications S.p.A. Italy - All Rights Reserved.*/ /* See LICENSE file in the project root for full license information. */ /** @@ -12,7 +12,7 @@ @version - 1.0.0 + 1.1.0 @note Dependencies: @@ -26,11 +26,7 @@ @date 08/03/2021 */ - -#include "TLTRootCerts.h" - -#include "TLTSSLClient.h" - +#include enum { diff --git a/src/TLTSSLClient.h b/src/TLTSSLClient.h index bf1080f..2c5a775 100644 --- a/src/TLTSSLClient.h +++ b/src/TLTSSLClient.h @@ -1,5 +1,6 @@ -/*===============================================================================================*/ -/* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */ +/*Copyright (C) 2021 Telit Communications S.p.A. Italy - All Rights Reserved.*/ +/* See LICENSE file in the project root for full license information. */ + /*! @file TLTSSLClient.h @@ -10,7 +11,7 @@ @version - 1.0.0 + 1.1.0 @note Dependencies: @@ -27,8 +28,8 @@ #ifndef __TLTSSLCLIENT__H #define __TLTSSLCLIENT__H /* Include files ================================================================================*/ -#include "ME310.h" -#include +#include +#include #include /* Using namespace ================================================================================*/ diff --git a/src/TLTScanner.cpp b/src/TLTScanner.cpp index 588e7e6..fff6822 100644 --- a/src/TLTScanner.cpp +++ b/src/TLTScanner.cpp @@ -27,7 +27,7 @@ */ #include -#include "TLTScanner.h" +#include //! \brief Class Constructor diff --git a/src/TLTScanner.h b/src/TLTScanner.h index f001e48..a1d2a18 100644 --- a/src/TLTScanner.h +++ b/src/TLTScanner.h @@ -28,7 +28,7 @@ #define __TLTSCANNER__H /* Include files ================================================================================*/ -#include "ME310.h" +#include #include /* Using namespace ================================================================================*/ diff --git a/src/TLTSocketBuffer.cpp b/src/TLTSocketBuffer.cpp index f5ff42e..13eac45 100644 --- a/src/TLTSocketBuffer.cpp +++ b/src/TLTSocketBuffer.cpp @@ -1,6 +1,7 @@ -/*Copyright (C) 2020 Telit Communications S.p.A. Italy - All Rights Reserved.*/ +/*Copyright (C) 2021 Telit Communications S.p.A. Italy - All Rights Reserved.*/ /* See LICENSE file in the project root for full license information. */ + /** @file TLTSocketBuffer.cpp @@ -12,7 +13,7 @@ @version - 1.0.0 + 1.1.0 @note Dependencies: diff --git a/src/TLTSocketBuffer.h b/src/TLTSocketBuffer.h index 46a3d3c..4f6aa66 100644 --- a/src/TLTSocketBuffer.h +++ b/src/TLTSocketBuffer.h @@ -1,5 +1,6 @@ -/*===============================================================================================*/ -/* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */ +/*Copyright (C) 2021 Telit Communications S.p.A. Italy - All Rights Reserved.*/ +/* See LICENSE file in the project root for full license information. */ + /*! @file TLTSocketBuffer.h @@ -10,7 +11,7 @@ @version - 1.0.0 + 1.1.0 @note Dependencies: @@ -26,7 +27,7 @@ #ifndef __TLTSOCKETBUFFER__H #define __TLTSOCKETBUFFER__H -#include "ME310.h" +#include using namespace std; using namespace me310; class TLTSocketBuffer diff --git a/src/TLTUDP.cpp b/src/TLTUDP.cpp index 37aa7d7..23d5219 100644 --- a/src/TLTUDP.cpp +++ b/src/TLTUDP.cpp @@ -1,6 +1,7 @@ -/*Copyright (C) 2020 Telit Communications S.p.A. Italy - All Rights Reserved.*/ +/*Copyright (C) 2021 Telit Communications S.p.A. Italy - All Rights Reserved.*/ /* See LICENSE file in the project root for full license information. */ + /** @file TLTUDP.cpp @@ -12,7 +13,7 @@ @version - 1.0.0 + 1.1.0 @note Dependencies: @@ -27,7 +28,7 @@ 08/02/2021 */ -#include "TLTUDP.h" +#include //! \brief Class Constructor /*! diff --git a/src/TLTUDP.h b/src/TLTUDP.h index 582dd86..407fd6b 100644 --- a/src/TLTUDP.h +++ b/src/TLTUDP.h @@ -1,5 +1,6 @@ -/*===============================================================================================*/ -/* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */ +/*Copyright (C) 2021 Telit Communications S.p.A. Italy - All Rights Reserved.*/ +/* See LICENSE file in the project root for full license information. */ + /*! @file TLTUdp.h @@ -10,7 +11,7 @@ @version - 1.0.0 + 1.1.0 @note Dependencies: @@ -27,7 +28,7 @@ #ifndef __TLTUDP__H #define __TLTUDP__H /* Include files ================================================================================*/ -#include "ME310.h" +#include #include /* Using namespace ================================================================================*/ using namespace std;