nvs_get_str(my_handle, "server_name", NULL, &required_size);
Posted: Thu Jan 26, 2017 1:52 pm
I there,
I have a problem with the "nvs.h" library. I can't understanding the mining of "my_hadle".
I need to save two strings with 50 to 100 bytes each, and read them.
I'm trying to understanding how...
"""
size_t required_size;
nvs_get_str((my_handle, "server_name", NULL, &required_size);
char* server_name = malloc(required_size);
nvs_get_str((my_handle, "server_name", server_name, &required_size);
"""
works, can some one explain to me
thanks
I have a problem with the "nvs.h" library. I can't understanding the mining of "my_hadle".
I need to save two strings with 50 to 100 bytes each, and read them.
I'm trying to understanding how...
"""
size_t required_size;
nvs_get_str((my_handle, "server_name", NULL, &required_size);
char* server_name = malloc(required_size);
nvs_get_str((my_handle, "server_name", server_name, &required_size);
"""
works, can some one explain to me
thanks