Arm Mbed OS support forum

ESP8266 Access Point

Good Day,

I am trying to set up an access point using the library ESP8266.h found at [https://os.mbed.com/users/grantphillips/code/ESP8266/] but am having trouble setting it up. What I have so far is:

#include “mbed.h”
#include “ESP8266.h”

Serial pc(USBTX, USBRX);

ESP8266 espp(PA_2, PA_3, PA_10);
DigitalOut enable(PB_3);

int main(){

enable = 1;
espp.startup(2);
espp.setSoftAPParam("ssid", "123456789", 1, 0);
espp.setSoftAPIP("192.168.2.155");
espp.TCPServerStart(80); 
espp.DHCP(1,0);

}

I am using a STM32F411RE Nucleo for testing. It complies successfully but when I try to find the access point with my laptop or mobile phone, I do not see it there. Can anyone help me with this?

Regards,

Scott

Hi Scott,

just wondered why you are using an external ESP8266 lib when the driver is built into mbed-os ?
(https://github.com/ARMmbed/mbed-os/tree/master/connectivity/drivers/wifi/esp8266-driver).
We also have the following wifi example, https://github.com/ARMmbed/mbed-os-example-wifi/blob/master/main.cpp which might help ?

Regards,
Anna