Mbed use esp8266-driver

Hi platformio forum members,

I want to use mbed with ESP8266. So I tried to use esp8266-driver library. But when I downloaded library and included its header, the library couldn’ t compile. In mbed online compiler the library compiles succesfully.

When I checked the error on internet, I saw some of structures in esp8266 library like “nsapi_security_t” not included from platfomio.

Could anyone help me how can I solve this problem.

I am using STM32-401RE board.

Thanks a lot.