Sming - Open Source framework for high efficiency native ESP8266 development

User avatar
By hreintke
#27107 No, a SDK API function cannot be used directly in the sming framework.
Although when adding the function definition and the right linker specification to the application it can be used.

If you require specific SDK functions, feel free to mention them and if required by more they could be added to Sming
User avatar
By helpme
#27140
hreintke wrote:No, a SDK API function cannot be used directly in the sming framework.
Although when adding the function definition and the right linker specification to the application it can be used.

If you require specific SDK functions, feel free to mention them and if required by more they could be added to Sming


Suppose I want to call
Code: Select allwifi_station_set_reconnect_policy(true)
as an example. I was hoping I can do it by calling it in application.cpp. How do I add the function definition and the right linker spec to call wifi_station_set_reconnect_policy(true) in application.cpp, if this is possible? Any sample on how to call a SDK API function on a SMING app?
User avatar
By hreintke
#27147 LS,
Not sure why but when I include the
Code: Select all   wifi_station_set_reconnect_policy(true);

into an example application I can compile without errors.
Earlier usage of other sdk functions needed additional effort so there must be difference between sdk functions.

Can you try whether your application compiles and runs OK ?
If yes, I will further investigate why and which difference exist