First off: I am a noob to esp-idf. So please don't judge that hard.
I am using a Heltec ESP32 board with Wifi.
A simple printf("Hello") is compiling and working.
I also tried the Arduino Example (with Arduino framework), that worked.
If I copy/paste your WPS Wifi example (https://github.com/espressif/esp-idf/tr ... i/wps/main) (only changed define to a fixed value (`#define WPS_MODE WPS_TYPE_PBC`)
If I try to compile all EVENTS are "undeclared". Did I forget something?
Code: Select all
Compiling .pioenvs/heltec_wifi_kit_32/src/main.o
src/main.c: In function 'wifi_event_handler':
src/main.c:26:14: error: 'WIFI_EVENT_STA_START' undeclared (first use in this function)
case WIFI_EVENT_STA_START:
^
src/main.c:26:14: note: each undeclared identifier is reported only once for each function it appears in
src/main.c:29:14: error: 'WIFI_EVENT_STA_DISCONNECTED' undeclared (first use in this function)
case WIFI_EVENT_STA_DISCONNECTED:
^
src/main.c:33:14: error: 'WIFI_EVENT_STA_WPS_ER_SUCCESS' undeclared (first use in this function)
case WIFI_EVENT_STA_WPS_ER_SUCCESS:
^
src/main.c:39:14: error: 'WIFI_EVENT_STA_WPS_ER_FAILED' undeclared (first use in this function)
case WIFI_EVENT_STA_WPS_ER_FAILED:
^
src/main.c:45:14: error: 'WIFI_EVENT_STA_WPS_ER_TIMEOUT' undeclared (first use in this function)
case WIFI_EVENT_STA_WPS_ER_TIMEOUT:
^
src/main.c:51:14: error: 'WIFI_EVENT_STA_WPS_ER_PIN' undeclared (first use in this function)
case WIFI_EVENT_STA_WPS_ER_PIN:
^
src/main.c:54:13: error: unknown type name 'wifi_event_sta_wps_er_pin_t'
wifi_event_sta_wps_er_pin_t* event = (wifi_event_sta_wps_er_pin_t*) event_data;
^
src/main.c:54:51: error: 'wifi_event_sta_wps_er_pin_t' undeclared (first use in this function)
wifi_event_sta_wps_er_pin_t* event = (wifi_event_sta_wps_er_pin_t*) event_data;
^
src/main.c:54:79: error: expected expression before ')' token
wifi_event_sta_wps_er_pin_t* event = (wifi_event_sta_wps_er_pin_t*) event_data;
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:21: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:29: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:37: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:45: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:53: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:61: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:69: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:77: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:21: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:29: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:37: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:45: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:53: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:61: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:69: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:77: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:21: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:29: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:37: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:45: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:53: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:61: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:69: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:77: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:21: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:29: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:37: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:45: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:53: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:61: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:69: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:77: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:21: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:29: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:37: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:45: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:53: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:61: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:69: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:55:61: error: request for member 'pin_code' in something not a structure or union
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c:16:77: note: in definition of macro 'PIN2STR'
#define PIN2STR(a) (a)[0], (a)[1], (a)[2], (a)[3], (a)[4], (a)[5], (a)[6], (a)[7]
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:311:41: note: in expansion of macro 'ESP_LOG_LEVEL'
if ( LOG_LOCAL_LEVEL >= level ) ESP_LOG_LEVEL(level, tag, format, ##__VA_ARGS__); \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:55:13: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "WPS_PIN = " PINSTR, PIN2STR(event->pin_code));
^
src/main.c: In function 'got_ip_event_handler':
src/main.c:65:5: error: unknown type name 'ip_event_got_ip_t'
ip_event_got_ip_t* event = (ip_event_got_ip_t*) event_data;
^
src/main.c:65:33: error: 'ip_event_got_ip_t' undeclared (first use in this function)
ip_event_got_ip_t* event = (ip_event_got_ip_t*) event_data;
^
src/main.c:65:51: error: expected expression before ')' token
ip_event_got_ip_t* event = (ip_event_got_ip_t*) event_data;
^
In file included from src/main.c:4:0:
src/main.c:66:52: error: request for member 'ip_info' in something not a structure or union
ESP_LOGI(TAG, "got ip: %s", ip4addr_ntoa(&event->ip_info.ip));
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:299:137: note: in definition of macro 'ESP_LOG_LEVEL'
if (level==ESP_LOG_ERROR ) { esp_log_write(ESP_LOG_ERROR, tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:66:5: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "got ip: %s", ip4addr_ntoa(&event->ip_info.ip));
^
src/main.c:66:52: error: request for member 'ip_info' in something not a structure or union
ESP_LOGI(TAG, "got ip: %s", ip4addr_ntoa(&event->ip_info.ip));
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:300:137: note: in definition of macro 'ESP_LOG_LEVEL'
else if (level==ESP_LOG_WARN ) { esp_log_write(ESP_LOG_WARN, tag, LOG_FORMAT(W, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:66:5: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "got ip: %s", ip4addr_ntoa(&event->ip_info.ip));
^
src/main.c:66:52: error: request for member 'ip_info' in something not a structure or union
ESP_LOGI(TAG, "got ip: %s", ip4addr_ntoa(&event->ip_info.ip));
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:301:137: note: in definition of macro 'ESP_LOG_LEVEL'
else if (level==ESP_LOG_DEBUG ) { esp_log_write(ESP_LOG_DEBUG, tag, LOG_FORMAT(D, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:66:5: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "got ip: %s", ip4addr_ntoa(&event->ip_info.ip));
^
src/main.c:66:52: error: request for member 'ip_info' in something not a structure or union
ESP_LOGI(TAG, "got ip: %s", ip4addr_ntoa(&event->ip_info.ip));
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:302:137: note: in definition of macro 'ESP_LOG_LEVEL'
else if (level==ESP_LOG_VERBOSE ) { esp_log_write(ESP_LOG_VERBOSE, tag, LOG_FORMAT(V, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:66:5: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "got ip: %s", ip4addr_ntoa(&event->ip_info.ip));
^
src/main.c:66:52: error: request for member 'ip_info' in something not a structure or union
ESP_LOGI(TAG, "got ip: %s", ip4addr_ntoa(&event->ip_info.ip));
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:303:137: note: in definition of macro 'ESP_LOG_LEVEL'
else { esp_log_write(ESP_LOG_INFO, tag, LOG_FORMAT(I, format), esp_log_timestamp(), tag, ##__VA_ARGS__); } \
^
/Users/janjezek/.platformio/packages/framework-espidf/components/log/include/esp_log.h:267:38: note: in expansion of macro 'ESP_LOG_LEVEL_LOCAL'
#define ESP_LOGI( tag, format, ... ) ESP_LOG_LEVEL_LOCAL(ESP_LOG_INFO, tag, format, ##__VA_ARGS__)
^
src/main.c:66:5: note: in expansion of macro 'ESP_LOGI'
ESP_LOGI(TAG, "got ip: %s", ip4addr_ntoa(&event->ip_info.ip));
^
In file included from /Users/janjezek/.platformio/packages/framework-espidf/components/esp32/include/esp_timer.h:44:0,
from /Users/janjezek/.platformio/packages/framework-espidf/components/freertos/include/freertos/portmacro.h:82,
from /Users/janjezek/.platformio/packages/framework-espidf/components/freertos/include/freertos/portable.h:94,
from /Users/janjezek/.platformio/packages/framework-espidf/components/freertos/include/freertos/FreeRTOS.h:105,
from src/main.c:1:
src/main.c: In function 'start_wps':
src/main.c:78:48: error: 'WIFI_EVENT' undeclared (first use in this function)
ESP_ERROR_CHECK(esp_event_handler_register(WIFI_EVENT, ESP_EVENT_ANY_ID, &wifi_event_handler, NULL));
^
/Users/janjezek/.platformio/packages/framework-espidf/components/esp32/include/esp_err.h:117:31: note: in definition of macro 'ESP_ERROR_CHECK'
esp_err_t __err_rc = (x); \
^
src/main.c:79:48: error: 'IP_EVENT' undeclared (first use in this function)
ESP_ERROR_CHECK(esp_event_handler_register(IP_EVENT, IP_EVENT_STA_GOT_IP, &got_ip_event_handler, NULL));
^
/Users/janjezek/.platformio/packages/framework-espidf/components/esp32/include/esp_err.h:117:31: note: in definition of macro 'ESP_ERROR_CHECK'
esp_err_t __err_rc = (x); \
^
src/main.c:79:58: error: 'IP_EVENT_STA_GOT_IP' undeclared (first use in this function)
ESP_ERROR_CHECK(esp_event_handler_register(IP_EVENT, IP_EVENT_STA_GOT_IP, &got_ip_event_handler, NULL));
^
/Users/janjezek/.platformio/packages/framework-espidf/components/esp32/include/esp_err.h:117:31: note: in definition of macro 'ESP_ERROR_CHECK'
esp_err_t __err_rc = (x); \
^
[.pioenvs/heltec_wifi_kit_32/src/main.o] Error 1