From f53b96869004cc1db76be3a3d39484c7df1d1406 Mon Sep 17 00:00:00 2001 From: luc lebosse Date: Fri, 17 Apr 2015 21:21:08 +0800 Subject: [PATCH] Add Include to access SDK function directly Some function like the one to know the current mode are not in ESPWifi class but directly available from SDK --- esp8266/wifi.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/esp8266/wifi.cpp b/esp8266/wifi.cpp index e6d08ecb..646252ff 100644 --- a/esp8266/wifi.cpp +++ b/esp8266/wifi.cpp @@ -22,6 +22,11 @@ #include "config.h" #include "ESP8266WiFi.h" #include "IPAddress.h" +extern "C" { +#include "user_interface.h" +} +//to get access to some function like +//wifi_get_opmode() in status //no strtok so this is simplified version //return number of part