-->
Page 1 of 1

ESP8266 Programming with Arduino using ESP8266 SDK API

PostPosted: Tue Oct 18, 2016 5:23 am
by Rohit Rajapure
Hey guys! I am interested in programming ESP8266, through arduino core using ESP SDK API and not the AT Commands. Is it possible? If yes, how?

Re: ESP8266 Programming with Arduino using ESP8266 SDK API

PostPosted: Wed Oct 19, 2016 9:44 pm
by sfranzyshen
Rohit Rajapure wrote:Hey guys! I am interested in programming ESP8266, through arduino core using ESP SDK API and not the AT Commands. Is it possible? If yes, how?


the SDK API is exposed by including the SDK includes with a extern c ... like

Code: Select allextern "C" {
    #include "user_interface.h"
    #include "espconn.h"
}


then you can call the SDK API directly ... for example ...
Code: Select all    softap_config apConfig;
    wifi_softap_get_config( &apConfig );