ESP8266 Access Point

Good Day,

I am trying to set up an access point using the library ESP8266.h found at [ESP8266 - Class library for using the ESP8266 wifi module. | Mbed] 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 ?
(mbed-os/connectivity/drivers/wifi/esp8266-driver at master · ARMmbed/mbed-os · GitHub).
We also have the following wifi example, mbed-os-example-wifi/main.cpp at master · ARMmbed/mbed-os-example-wifi · GitHub which might help ?

Regards,
Anna

Maybe because he wanted to use TCP Server, as can be seen from the description. But Mbed not have server implemented for some strange reason.

BR, Jan