Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
OsMessageInterceptor Class Reference

Class to handle interception of OS messages. More...

#include <OsMessageInterceptor.h>

Public Member Functions

void begin (OsMessageCallback callback)
 Enable message interception. More...
 
void end ()
 Stop message interception and revert to output via uart driver. More...
 

Protected Member Functions

void putc (char c)
 

Static Protected Member Functions

static void static_putc (char c)
 

Detailed Description

Class to handle interception of OS messages.

Note
Messages are output character-by-character so must be reassembled into lines before passing to callback function

Member Function Documentation

void OsMessageInterceptor::begin ( OsMessageCallback  callback)

Enable message interception.

Parameters
callbackFunction to receive messages
Note
Messages are suppressed from output during interception. If you wish to send them to the uart, etc. then do this in the callback.
void OsMessageInterceptor::end ( )

Stop message interception and revert to output via uart driver.