An update: while working, the NodeMCU solution was very hard to use/modify.
I have set to a new solution, which is much stable and do not require to flash anything on the ESP8266:
Amazing library that uses AT commands to emulate a "client" library: https://github.com/bportaluri/WiFiEsp
A...