Why does static member std::map reset ESP8266 when outside the .ino file?
Why does static member std::map reset ESP8266 when outside the .ino file?


What happens if the Test() constructor is run before the map constructor? This is the problem: you are assuming order of execution.

Use a Singleton pattern or init() member function to force the ordering that is required.

Cheers!