Skip to content

Commit

Permalink
add GNSS utility class, minor code cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopi-tlt committed Oct 8, 2021
1 parent f27d78d commit f5ca810
Show file tree
Hide file tree
Showing 26 changed files with 370 additions and 92 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
- CAT-M1 and NB-IoT (preferred) (3)
@version
1.0.0
1.1.0
@note
Expand All @@ -30,7 +30,7 @@
09/23/2021
*/

#include "TLTMDM.h"
#include <TLTMDM.h>

ME310 myME310;

Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=TLT
version=1.0.0
version=1.1.0
author=Telit
maintainer=Telit <[email protected]>
sentence=Provides network communication capabilities over ME310G1 Telit module.
Expand Down
4 changes: 2 additions & 2 deletions src/GPRS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@version
1.0.0
1.1.0
@note
Dependencies:
Expand All @@ -24,7 +24,7 @@
@date
08/03/2021
*/
#include "GPRS.h"
#include <GPRS.h>

/*! \enum GPRS status
\brief Enum of GPRS status of internal state machine
Expand Down
11 changes: 6 additions & 5 deletions src/GPRS.h
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -10,7 +11,7 @@
@version
1.0.0
1.1.0
@note
Dependencies:
Expand All @@ -27,8 +28,8 @@
#define __GPRS__H
/* Include files ================================================================================*/
#include <IPAddress.h>
#include "ME310.h"
#include "TLT.h"
#include <ME310.h>
#include <TLT.h>

/* Using namespace ================================================================================*/
using namespace std;
Expand Down
2 changes: 1 addition & 1 deletion src/TLT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -222,7 +223,6 @@ int TLT::ready()
{
return 0;
}

switch (_readyState)
{
case READY_STATE_SET_ERROR_DISABLED:
Expand Down
10 changes: 5 additions & 5 deletions src/TLT.h
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -10,7 +11,7 @@
This class managements the most important functionality of connection function.
@version
1.0.0
1.1.0
@note
Dependencies:
Expand All @@ -27,11 +28,10 @@
#ifndef __TLT__H
#define __TLT__H
/* Include files ================================================================================*/
#include "ME310.h"
#include <stdio.h>
#include <stdarg.h>
#include <string>

#include <ME310.h>
/* Using namespace ================================================================================*/
using namespace std;
using namespace me310;
Expand Down
8 changes: 4 additions & 4 deletions src/TLTClient.cpp
Original file line number Diff line number Diff line change
@@ -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. */

/**
Expand All @@ -12,7 +12,7 @@
@version
1.0.0
1.1.0
@note
Dependencies:
Expand All @@ -26,9 +26,9 @@
@date
07/28/2021
*/
#include "TLTSocketBuffer.h"
#include <TLTSocketBuffer.h>

#include "TLTClient.h"
#include <TLTClient.h>

/*! \enum Client state machine status
\brief Enum of client status of internal state machine
Expand Down
9 changes: 5 additions & 4 deletions src/TLTClient.h
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -10,7 +11,7 @@
@version
1.0.0
1.1.0
@note
Dependencies:
Expand All @@ -28,7 +29,7 @@
#ifndef __TLTCLIENT__H
#define __TLTCLIENT__H
/* Include files ================================================================================*/
#include "ME310.h"
#include <ME310.h>
#include <Client.h>

/* Using namespace ================================================================================*/
Expand Down
7 changes: 3 additions & 4 deletions src/TLTFileUtils.cpp
Original file line number Diff line number Diff line change
@@ -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. */

/**
Expand All @@ -12,13 +12,12 @@
@version
1.0.0
1.1.0
@note
Dependencies:
ME310.h
TLTUtils.h
Modem.h
@author
Expand All @@ -28,7 +27,7 @@
*/


#include "TLTFileUtils.h"
#include <TLTFileUtils.h>

TLTFileUtils::TLTFileUtils(ME310* me310, bool debug) : _count(0), _files(""), _debug(debug)
{
Expand Down
9 changes: 5 additions & 4 deletions src/TLTFileUtils.h
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -10,7 +11,7 @@
@version
1.0.0
1.1.0
@note
Dependencies:
Expand All @@ -29,7 +30,7 @@

#pragma once
/* Include files ================================================================================*/
#include "ME310.h"
#include <ME310.h>
#include <Arduino.h>
/* Using namespace ================================================================================*/
using namespace std;
Expand Down
Loading

0 comments on commit f5ca810

Please sign in to comment.