work
Ondřej Hruška 7 years ago
parent 2c80b59d71
commit 3eac0ee794
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 3
      user/config_xmacros.h
  2. 9
      user/wifimgr.h

@ -82,4 +82,7 @@ enum xset_result xset_string(const char *name, char *field, const char *buff, co
#define XGET_CGI_FUNC(type, name, suffix, deref, xget, cast, xset, xsarg, xnotify) \
if (streq(token, #name)) xget(buff, deref wificonf->name);
#define XSTRUCT_FIELD(type, name, suffix, deref, xget, cast, xset, xsarg, xnotify) \
type name suffix;
#endif //ESPTERM_CONFIG_XMACROS_H

@ -8,6 +8,7 @@
#define ESP_VT100_FIRMWARE_WIFI_MANAGER_H
#include <esp8266.h>
#include "config_xmacros.h"
#include "cgi_wifi.h"
#define SSID_LEN 32
@ -64,14 +65,8 @@
* This block can be used eg. for WiFi config backup.
*/
typedef struct {
#define X( \
type, name, suffix, \
deref, xget, \
cast, xset, xsarg, \
xnotify) type name suffix;
#define X XSTRUCT_FIELD
XTABLE_WIFI
#undef X
} WiFiConfigBundle;

Loading…
Cancel
Save