Thingstream Client Library  BLD4131-v2.13
Functions
log_modem_transport.h File Reference

ThingstreamTransport implementation that logs traffic between modem and serial transports. More...

#include <stdint.h>
#include "transport_api.h"

Functions

ThingstreamTransportThingstream_createModemLogger (ThingstreamTransport *inner, ThingstreamPrintf_t log, uint8_t level_mask)
 

Detailed Description

ThingstreamTransport implementation that logs traffic between modem and serial transports.

Function Documentation

◆ Thingstream_createModemLogger()

ThingstreamTransport* Thingstream_createModemLogger ( ThingstreamTransport inner,
ThingstreamPrintf_t  log,
uint8_t  level_mask 
)

Add logging to an underlying (probably serial) transport instance.

Parameters
innerthe ThingstreamTransport instance to wrap
logthe function to use for printing to the log
level_maska bitmask specifying which messages to write to the log
Returns
the new ThingstreamTransport instance