Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ESP8266 WiFi チップと SMING フレームワークを使用しています。
SMING フレームワークを使用するアプリ内で SDK API 関数を呼び出したいと考えています。
を呼び出したいとしますwifi_station_set_reconnect_policy(true)。SMING application.cpp でこれを行うにはどうすればよいですか?
wifi_station_set_reconnect_policy(true)
SMING は SDK の上のレイヤーに過ぎず、直接呼び出すことができます。
メソッドwifi_station_set_reconnect_policyは SDK で定義されているため、次のようuser_interface.hに呼び出すことができます。application.cpp
wifi_station_set_reconnect_policy
user_interface.h
application.cpp
#include <user_config.h> #include <SmingCore/SmingCore.h> void init() { wifi_station_set_reconnect_policy(true); }