Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
WIFIStatusResponse.cpp
00001 #include "WIFIStatusResponse.h" 00002 00003 using namespace SmartLabMuRata; 00004 00005 WIFIStatusResponse::WIFIStatusResponse(Payload * payload) 00006 : Payload(payload) 00007 { } 00008 00009 WIFIStatusCode WIFIStatusResponse::GetWiFiStatusCode() 00010 { 00011 return (WIFIStatusCode)GetData()[2]; 00012 } 00013 00014 const char * WIFIStatusResponse::GetMACAddress() 00015 { 00016 if (GetWiFiStatusCode() == WIFI_OFF) 00017 return NULL; 00018 00019 return GetData() + 3; 00020 } 00021 00022 const char * WIFIStatusResponse::GetSSID() 00023 { 00024 WIFIStatusCode code = GetWiFiStatusCode(); 00025 if (code == STA_JOINED || code == AP_STARTED) 00026 return GetData() + 9; 00027 00028 return NULL; 00029 }
Generated on Fri Jul 15 2022 01:02:11 by
1.7.2