40 #ifndef YOCTO_WIRELESS_H 41 #define YOCTO_WIRELESS_H 52 #ifndef _Y_SECURITY_ENUM 53 #define _Y_SECURITY_ENUM 63 #ifndef _Y_WLANSTATE_ENUM 64 #define _Y_WLANSTATE_ENUM 73 #define Y_LINKQUALITY_INVALID (YAPI_INVALID_UINT) 74 #define Y_SSID_INVALID (YAPI_INVALID_STRING) 75 #define Y_CHANNEL_INVALID (YAPI_INVALID_UINT) 76 #define Y_MESSAGE_INVALID (YAPI_INVALID_STRING) 77 #define Y_WLANCONFIG_INVALID (YAPI_INVALID_STRING) 92 #pragma option push -w-8022 113 virtual string get_ssid(
void);
115 virtual int get_channel(
void);
117 virtual string get_security(
void);
119 virtual int get_linkQuality(
void);
139 #pragma option push -w-8022 193 int get_linkQuality(
void);
196 {
return this->get_linkQuality(); }
205 string get_ssid(
void);
208 {
return this->get_ssid(); }
218 int get_channel(
void);
221 {
return this->get_channel(); }
234 {
return this->get_security(); }
243 string get_message(
void);
246 {
return this->get_message(); }
248 string get_wlanConfig(
void);
251 {
return this->get_wlanConfig(); }
253 int set_wlanConfig(
const string& newval);
255 {
return this->set_wlanConfig(newval); }
281 {
return this->get_wlanState(); }
310 static YWireless* FindWireless(
string func);
338 virtual int startWlanScan(
void);
352 virtual int joinNetwork(
string ssid,
string securityKey);
374 virtual int adhocNetwork(
string ssid,
string securityKey);
394 virtual int softAPNetwork(
string ssid,
string securityKey);
407 virtual vector<YWlanRecord> get_detectedWlans(
void);
422 {
return this->nextWireless();}
Y_SECURITY_enum _security
Y_SECURITY_enum security(void)
static const string SSID_INVALID
YWirelessValueCallback _valueCallbackWireless
static const string MESSAGE_INVALID
Y_WLANSTATE_enum _wlanState
#define YAPI_INVALID_UINT
YWireless * yFindWireless(const string &func)
static const string WLANCONFIG_INVALID
virtual int _parseAttr(YJSONObject *json_val)
int setWlanConfig(const string &newval)
static YWireless * First(void)
virtual int registerValueCallback(YFunctionValueCallback callback)
Y_WLANSTATE_enum wlanState(void)
static YWireless * FirstWireless(void)
#define YOCTO_CLASS_EXPORT
YWireless * yFirstWireless(void)
static YWireless * Find(string func)
void(* YWirelessValueCallback)(YWireless *func, const string &functionValue)
static YWireless * FindWireless(string func)
virtual int _invokeValueCallback(string value)