Sorry for the following (probably very thumb) question:
I allways fight with finding the correct definition of functions and especially of structures.
This time - for example - I try to analyse ‘struct mg_connection’, because I want to extract the peer ip address. Surfing through the internet, I find two different definitions of this structure: One containing a member ‘peer’ and a second with a member ‘sa’. Obviously, when I do a remote build with mos.exe (version 2.19.0), the second one is taken. I do not know why, because the remote build is a black box for me.
So my question: Where do I find ALL the necessary/correct include files that are taken by mos.exe in a remote build for ESP8266 and ESP32?
Thanks for any input and sorry again for this question.
Rolf
Thanks for your answer.
And what is the next step? I am locking now for ‘union socket_address’. Do you know, where can I find this? And is there a general rule how to find the next include file?
Its a kind of ‘needle in the hay’ …