-->
Page 1 of 1

what's the bridge between Arduino sketches and ESP SDK?

PostPosted: Sat May 14, 2016 4:05 am
by lilzz
I looking at ArduinoWifi library folder
there's a file call espduino.cpp. So basically, all it does is sending out AT commands to control the ESP chip. right?

But what about ESP SDK API functions like system APIs

system_get_sdk_version
system_restore
system_restart
system_init_done_cb
system_get_chip_id
system_get_vdd33

Looks like Arduino does not use those SDK API functions, right?


[list=]void ESP::write(uint8_t data)
{
switch(data){
case SLIP_START:
case SLIP_END:
case SLIP_REPL:
_serial->write(SLIP_REPL);
_serial->write(SLIP_ESC(data));
break;
default:
_serial->write(data);
}[/list]
}

Re: what's the bridge between Arduino sketches and ESP SDK?

PostPosted: Sat May 14, 2016 5:25 am
by IOT@urremote.com
I didn't fully understand your question but the Espressif SDK functions are defined for the Arduino environment at
https://github.com/esp8266/Arduino/blob ... nterface.h

Re: what's the bridge between Arduino sketches and ESP SDK?

PostPosted: Sat May 14, 2016 8:40 am
by martinayotte
It looks like @lilzz is using an external Arduino UNO with an ESP attached, therefore plain AT firmware.
So, all the above functions are only available if your write your own firmware without using AT firmware.