Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
log_backend_ws.h File Reference
#include <stdbool.h>

Go to the source code of this file.

Functions

int log_backend_ws_register (int fd)
 Register websocket socket where the logging output is sent.
 
int log_backend_ws_unregister (int fd)
 Unregister websocket socket where the logging output was sent.
 
const struct log_backendlog_backend_ws_get (void)
 Get the websocket logger backend.
 
void log_backend_ws_start (void)
 Start the websocket logger backend.
 

Function Documentation

◆ log_backend_ws_get()

const struct log_backend * log_backend_ws_get ( void )

Get the websocket logger backend.

This function returns the websocket logger backend.

Returns
Pointer to the websocket logger backend.

◆ log_backend_ws_register()

int log_backend_ws_register ( int fd)

Register websocket socket where the logging output is sent.

Parameters
fdWebsocket socket value.
Returns
0 if ok, <0 if error

◆ log_backend_ws_start()

void log_backend_ws_start ( void )

Start the websocket logger backend.

This function starts the websocket logger backend.

◆ log_backend_ws_unregister()

int log_backend_ws_unregister ( int fd)

Unregister websocket socket where the logging output was sent.

After this the websocket output is disabled.

Parameters
fdWebsocket socket value.
Returns
0 if ok, <0 if error