RemoteDebug icon indicating copy to clipboard operation
RemoteDebug copied to clipboard

WiFiClientSecure.h not found on platform espressif32 (platformio)

Open majodi opened this issue 6 years ago • 3 comments

Describe the bug WiFiClientSecure.h not found error when using espressif32 platform with PlatformIO

To Reproduce Just use remotedebug in a project on PlatformIO with espressif32

Expected behavior The code should work also under these conditions

Additional context I used the WEBSOCKET_DISABLED switch but as PlatformIO is compiling the /utility directory I also had to add an entry to library.json:

"build": { "srcFilter": "+<*> -" },

Now my project works again but of course this is not ideal... Better to fix the code for espressif32 use.

majodi avatar Mar 31 '19 20:03 majodi

Hi @majodi

Sorry for delay, I not have time to test it in platformio, But I saw a lot of issues in it about the include. When I install platformio, I will work in a solution

Thanks for this feedback

JoaoLopesF avatar Apr 06 '19 13:04 JoaoLopesF

No problem. I think for other potential casual PIO users like me it would be good to know that one can use:

(platformio.ini)

build_flags = -DWEBSOCKET_DISABLED=true

to set the switch. But because PIO still performs a compile on the /utility dir you have to avoid this somehow. I added an entry to library.json. But I don't know what the best way would be to dynamically set this option to exclude the /utility dir completely when needed. Also if the code there would be suitable for the espressif32 platform it wouldn't matter. So I think it would be best to have conditional code that compiles with espressif32, then the exclude would not be needed.

majodi avatar Apr 06 '19 15:04 majodi

For some Reason I do get a similar error with Wificlientsecure.h in Arduino IDE while compiling. My programming-skills are not advanced enough to figure out the reason or fix the problem myself. Maybe I'm also just doing something wrong.

ISWlehre avatar Apr 10 '19 16:04 ISWlehre