Update WiFiProv.cpp (#4519)
Do not pollute the global namespace with generic names like 'config' by declaring global variables 'static'.
This commit is contained in:
parent
8816bb5505
commit
b6cc108d49
@ -33,9 +33,10 @@
|
|||||||
#undef IPADDR_NONE
|
#undef IPADDR_NONE
|
||||||
#include "WiFi.h"
|
#include "WiFi.h"
|
||||||
|
|
||||||
wifi_prov_mgr_config_t config;
|
|
||||||
scheme_t prov_scheme;
|
|
||||||
extern esp_err_t postToSysQueue(system_prov_event_t *);
|
extern esp_err_t postToSysQueue(system_prov_event_t *);
|
||||||
|
|
||||||
|
static wifi_prov_mgr_config_t config;
|
||||||
|
static scheme_t prov_scheme;
|
||||||
static const uint8_t custom_service_uuid[16] = { 0xb4, 0xdf, 0x5a, 0x1c, 0x3f, 0x6b, 0xf4, 0xbf,
|
static const uint8_t custom_service_uuid[16] = { 0xb4, 0xdf, 0x5a, 0x1c, 0x3f, 0x6b, 0xf4, 0xbf,
|
||||||
0xea, 0x4a, 0x82, 0x03, 0x04, 0x90, 0x1a, 0x02, };
|
0xea, 0x4a, 0x82, 0x03, 0x04, 0x90, 0x1a, 0x02, };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user