Wirepas SDK
persistent.h
Go to the documentation of this file.
1 /* Copyright 2018 Wirepas Ltd. All Rights Reserved.
2  *
3  * See file LICENSE.txt for full license details.
4  *
5  */
6 
7 #ifndef _PERSISTENT_H_
8 #define _PERSISTENT_H_
9 
10 #include <stdint.h>
11 #include <stdbool.h>
12 #include "api.h"
13 #include "multicast.h"
14 
19 void Persistent_init(void);
20 
27 app_res_e Persistent_getAutostart(bool * autostart);
28 
35 app_res_e Persistent_setAutostart(bool autostart);
36 
45 app_res_e Persistent_isFirstboot(bool * firstboot);
46 
53 app_res_e Persistent_setFirstboot(bool firstboot);
54 
62 
70 
71 #endif /* SOURCE_DUALMCU_APP_WAPS_SAP_PERSISTENT_H_ */
Persistent_getGroups
app_res_e Persistent_getGroups(multicast_group_addr_t *addr)
Get multicast groups.
Persistent_setGroups
app_res_e Persistent_setGroups(multicast_group_addr_t *addr)
Set multicast groups.
app_res_e
app_res_e
Definition: wms_app.h:201
Persistent_setFirstboot
app_res_e Persistent_setFirstboot(bool firstboot)
Set firstboot flag.
Persistent_init
void Persistent_init(void)
Initializes the persistent module. Sets autoboot and firstboot flags to their default values.
Persistent_setAutostart
app_res_e Persistent_setAutostart(bool autostart)
Set autostart bit.
Persistent_isFirstboot
app_res_e Persistent_isFirstboot(bool *firstboot)
Get firstboot flag.
multicast.h
multicast_group_addr_t
Definition: multicast.h:15
Persistent_getAutostart
app_res_e Persistent_getAutostart(bool *autostart)
Get autostart bit.
api.h