Settings specific macros. More...

Macros

#define GOS_VERIFY_SETTING_STR (setting, val) gos_settings_set_str (setting, val)
Verify the result of setting a string setting, print message on failure. More...
#define GOS_VERIFY_SETTING_UINT32 (setting, val) gos_settings_set_uint32 (setting, val)
Verify the result of setting a uint32 setting, print message on failure. More...
#define GOS_GET_SETTING_STR (setting, buffer) gos_settings_get_print_str (setting, buffer, sizeof(buffer))
Return a NVM setting as string. More...

Detailed Description

Settings specific macros.

Macro Definition Documentation

GOS_GET_SETTING_STR

#define GOS_GET_SETTING_STR ( setting,
buffer
) gos_settings_get_print_str (setting, buffer, sizeof(buffer))

Return a NVM setting as string.

Parameters
setting The setting string to get
buffer Buffer to hold setting's string value
Examples:
network/softap_tcp_server/main.c , and wifi/web_setup/main.c .

GOS_VERIFY_SETTING_STR

#define GOS_VERIFY_SETTING_STR ( setting,
val
) gos_settings_set_str (setting, val)

Verify the result of setting a string setting, print message on failure.

app must be built with debugging enabled for macro to take effect

GOS_VERIFY_SETTING_UINT32

#define GOS_VERIFY_SETTING_UINT32 ( setting,
val
) gos_settings_set_uint32 (setting, val)

Verify the result of setting a uint32 setting, print message on failure.

app must be built with debugging enabled for macro to take effect