extras/wificfg: make the default wifi options overridable
wificfg.c defines the default values for ssid, password and hostname. But because these are not weak, trying to redefine these causes a link error. This change marks the definitions in wificfg.c weak, thus making it possible for a program using the wificfg component to redefine these w/o having to touch wificfg.c.
This commit is contained in:
parent
5f6ccbd1be
commit
77b2b2306f
1 changed files with 3 additions and 3 deletions
|
@ -54,9 +54,9 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
const char *wificfg_default_ssid = "EOR_%02X%02X%02X";
|
const char *wificfg_default_ssid __attribute__ ((weak)) = "EOR_%02X%02X%02X";
|
||||||
const char *wificfg_default_password = "esp-open-rtos";
|
const char *wificfg_default_password __attribute__ ((weak)) = "esp-open-rtos";
|
||||||
const char *wificfg_default_hostname = "eor-%02x%02x%02x";
|
const char *wificfg_default_hostname __attribute__ ((weak)) = "eor-%02x%02x%02x";
|
||||||
|
|
||||||
/* The http task stack allocates a single buffer to do much of it's work. */
|
/* The http task stack allocates a single buffer to do much of it's work. */
|
||||||
#define HTTP_BUFFER_SIZE 54
|
#define HTTP_BUFFER_SIZE 54
|
||||||
|
|
Loading…
Reference in a new issue