Container for serving tower and neighbor tower information.
More...
#include <QuectelTowerRK.h>
|
|
| TowerInfo () |
| | Default constructor.
|
| |
|
virtual | ~TowerInfo () |
| | Destructor.
|
| |
| | TowerInfo (const TowerInfo &other) |
| | You can construct an object as a copy of another object. This is a deep copy.
|
| |
| TowerInfo & | operator= (const TowerInfo &other) |
| | Copy another object into this object. This is a deep copy.
|
| |
|
void | clear () |
| | Clear the object to default values with no neighbors.
|
| |
| int | parseServing (const char *in) |
| | Parse the results of an AT+QENG serving cell request.
|
| |
| int | parseNeighbor (const char *in) |
| | Parse the results of an AT+QENG neighbor cells request.
|
| |
| void | log (const char *msg, LogLevel level=LOG_LEVEL_TRACE) |
| | Log the information to the debugging log.
|
| |
| TowerInfo & | toJsonWriter (JSONWriter &writer, int numToInclude=0) |
| | Add the serving and neighbor towers to the writer in an array.
|
| |
| bool | isValid () const |
| | Returns true if the object appears to contain valid data.
|
| |
Container for serving tower and neighbor tower information.
◆ TowerInfo()
| QuectelTowerRK::TowerInfo::TowerInfo |
( |
const TowerInfo & | other | ) |
|
You can construct an object as a copy of another object. This is a deep copy.
- Parameters
-
After copying, changes to the other object have no effect on this object. Also the other object can be deleted, if desired.
◆ isValid()
| bool QuectelTowerRK::TowerInfo::isValid |
( |
| ) |
const |
Returns true if the object appears to contain valid data.
- Returns
- true
-
false
This just checks the serving cell RAT to make sure it's not NONE.
◆ log()
| void QuectelTowerRK::TowerInfo::log |
( |
const char * | msg, |
|
|
LogLevel | level = LOG_LEVEL_TRACE ) |
Log the information to the debugging log.
- Parameters
-
| msg | A message to write before the serving cell |
| level | Logging level. Default is LOG_LEVEL_TRACE. LOG_LEVEL_INFO is another common option. |
◆ operator=()
Copy another object into this object. This is a deep copy.
- Parameters
-
The previous contents of this object are cleared first; this does not merge data.
◆ parseNeighbor()
| int QuectelTowerRK::TowerInfo::parseNeighbor |
( |
const char * | in | ) |
|
Parse the results of an AT+QENG neighbor cells request.
- Parameters
-
- Returns
- int
◆ parseServing()
| int QuectelTowerRK::TowerInfo::parseServing |
( |
const char * | in | ) |
|
Parse the results of an AT+QENG serving cell request.
- Parameters
-
- Returns
- int
◆ toJsonWriter()
Add the serving and neighbor towers to the writer in an array.
- Parameters
-
| writer | |
| numToInclude | Number of towers to add, or 0 for all |
- Returns
- TowerInfo&
◆ neighbors
Vector of neighbor cells. This member is public.
You can use vector members on this, like size(), at(), and iter() to work with the results.
The documentation for this class was generated from the following files: