Go to the source code of this file.
◆ Persistent_getAutostart()
app_res_e Persistent_getAutostart |
( |
bool * |
autostart | ) |
|
Get autostart bit.
- Parameters
-
autostart | out: true: autostart is enabled, false: autostart is disabled |
- Returns
- Status of the operation
◆ Persistent_getGroups()
Get multicast groups.
- Parameters
-
addr | Multicast addresses stored in storage |
- Returns
- Status of the operation
◆ Persistent_init()
void Persistent_init |
( |
void |
| ) |
|
Initializes the persistent module. Sets autoboot and firstboot flags to their default values.
◆ Persistent_isFirstboot()
app_res_e Persistent_isFirstboot |
( |
bool * |
firstboot | ) |
|
Get firstboot flag.
- Parameters
-
firstboot | out: true: this is the first boot, false: not the first boot |
- Note
- The logic is inversed in the raw persistant storage (firstboot==true means 0 is stored in flash).
- Returns
- Status of the operation
◆ Persistent_setAutostart()
app_res_e Persistent_setAutostart |
( |
bool |
autostart | ) |
|
Set autostart bit.
- Parameters
-
autostart | true: autostart is enabled, false: autostart is disabled |
- Returns
- Status of the operation
◆ Persistent_setFirstboot()
app_res_e Persistent_setFirstboot |
( |
bool |
firstboot | ) |
|
Set firstboot flag.
- Parameters
-
firstboot | out: true: this is the first boot, false: not the first boot |
- Returns
- Status of the operation
◆ Persistent_setGroups()
Set multicast groups.
- Parameters
-
addr | Multicast addresses stored in storage |
- Returns
- Status of the operation