Zephyr API Documentation  3.5.0
A Scalable Open Source RTOS
3.5.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
log_backend_net.h File Reference
#include <stdbool.h>

Go to the source code of this file.

Functions

bool log_backend_net_set_addr (const char *addr)
 Allows user to set a server IP address at runtime.
 

Function Documentation

◆ log_backend_net_set_addr()

bool log_backend_net_set_addr ( const char *  addr)

Allows user to set a server IP address at runtime.

This function allows the user to set an IPv4 or IPv6 address at runtime. It can be called either before or after the backend has been initialized. If it gets called when the net logger backend context is running, it'll release it and create another one with the new address next time process() gets called.

Parameters
addrString that contains the IP address.
Returns
True if parsing could be done, false otherwise.