Wombat Environmental Node 1.0
An environmental node for SDI-12 and digital sensors.
Loading...
Searching...
No Matches
cat-m1.cpp File Reference

CAT-M1 CLI command request and response handler. More...

#include "cli/peripherals/cat-m1.h"
#include "CAT_M1.h"
#include "Utils.h"
#include "SparkFun_u-blox_SARA-R5_Arduino_Library.h"
#include "globals.h"
#include "cli/CLI.h"
Include dependency graph for cat-m1.cpp:

Functions

bool getNTPTime (SARA_R5 &r5)
 
static int get_response (uint32_t timeout=500)
 Get response from modem with a timeout. More...
 

Variables

SARA_R5 r5
 Sparkfun SARA-R5 library instance. More...
 
static StreamString response_buffer_
 Holds responses from the modem. More...
 

Detailed Description

CAT-M1 CLI command request and response handler.

Date
January 2023

Function Documentation

◆ get_response()

static int get_response ( uint32_t  timeout = 500)
static

Get response from modem with a timeout.

After a command has been sent to the modem this function handles the response. -1 will be returned if the command times out, else the number of characters in the 'g_buffer' will be returned.

Parameters
timeoutWait for response timeout.
Returns
Number of characters in response.

◆ getNTPTime()

bool getNTPTime ( SARA_R5 &  r5)

Variable Documentation

◆ r5

SARA_R5 r5
extern

Sparkfun SARA-R5 library instance.

◆ response_buffer_

StreamString response_buffer_
static

Holds responses from the modem.