esp32-snippets: wifi.cpp scan hangs after declaring object instance

Could you please explain the following

This scenario DOES NOT work for me:

WiFi wifi_debug;
auto results = wifi_debug.scan();
... hangs on:  0x4011cf9c: WiFiEventHandler::eventHandler(void*, system_event_t*) at C:/Users/Rick/Documents/EclipseProjects/orb1/components/cpp_utils/WiFiEventHandler.cpp:26

This scenario DOES work for me:

WiFi *pwifi1;
pwifi1 = new WiFi;
auto results = pwifi1->scan();

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 53 (15 by maintainers)

Most upvoted comments

The issue was that I logged out and logged back in thinking I would then load my groups. That didn’t happen. I had to shut down Ubuntu then start again before it recognized that I was part of dialout group. I just flashed hello_world successfully. On to Eclipse