Zephyr API Documentation
3.6.0
A Scalable Open Source RTOS
|
|
3.6.0 |
#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. | |
static void | log_backend_net_hostname_set (const char *hostname, size_t len) |
update the hostname | |
|
inlinestatic |
update the hostname
This function allows to update the hostname displayed by the logging backend. It will be called by the network stack if the hostname is set with net_hostname_set().
hostname | new hostname as char array. |
len | Length of the hostname array. |
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.
addr | String that contains the IP address. |