what's the bridge between Arduino sketches and ESP SDK?
Posted: Sat May 14, 2016 4:05 am
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]
}
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]
}