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

ThingstreamTransport implementation that logs thingstream requests made to the thingstream transport layer. More...

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

Functions

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

Detailed Description

ThingstreamTransport implementation that logs thingstream requests made to the thingstream transport layer.

Function Documentation

◆ Thingstream_createClientLogger()

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

Add logging between client transport and the underlying 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