Murata RF modules are designed to simplify wireless development and certification by minimizing the amount of RF expertise you need to wirelessly enable a wide range of applications.

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers WIFINetworkDetail.cpp Source File

WIFINetworkDetail.cpp

00001 #include "WIFINetworkDetail.h"
00002 
00003 using namespace SmartLabMuRata;
00004 
00005 WIFINetworkDetail::WIFINetworkDetail() { }
00006 
00007 WIFINetworkDetail::~WIFINetworkDetail() {}
00008 
00009 WIFINetworkDetail::WIFINetworkDetail(const char * SSID, const SecurityMode securityMode, const BSSType networkType, const int rssi, const int maxDataRate)
00010     : WIFINetwork(SSID, securityMode)
00011 {
00012     netType = networkType;
00013     this->rssi = rssi;
00014     this->maxDataRate = maxDataRate;
00015 }
00016 
00017 int8_t WIFINetworkDetail::GetRSSI()
00018 {
00019     return rssi;
00020 }
00021 
00022 /// <summary>
00023 /// Max Data Rate (Mbps)
00024 /// </summary>
00025 /// <returns></returns>
00026 int WIFINetworkDetail::GetMaxDataRate()
00027 {
00028     return maxDataRate;
00029 }
00030 
00031 BSSType WIFINetworkDetail::GetNetworkType()
00032 {
00033     return netType;
00034 }
00035 
00036 WIFINetworkDetail * WIFINetworkDetail::SetRSSI(const int rssi)
00037 {
00038     this->rssi = rssi;
00039     return this;
00040 }
00041 
00042 WIFINetworkDetail * WIFINetworkDetail::SetNetworkType(const BSSType networkType)
00043 {
00044     netType = networkType;
00045     return this;
00046 }
00047 
00048 WIFINetworkDetail * WIFINetworkDetail::SetMaxDataRate(const int maxDataRate)
00049 {
00050     this->maxDataRate = maxDataRate;
00051     return this;
00052 }
00053 
00054 WIFINetworkDetail * WIFINetworkDetail::SetSecurityKey(const char * SecurityKey)
00055 {
00056     WIFINetwork::SetSecurityKey(SecurityKey);
00057     return this;
00058 }
00059 
00060 WIFINetworkDetail * WIFINetworkDetail::SetBSSID(const char * BSSID)
00061 {
00062     WIFINetwork::SetBSSID(BSSID);
00063     return this;
00064 }
00065 
00066 WIFINetworkDetail * WIFINetworkDetail::SetSSID(const char * SSID)
00067 {
00068     WIFINetwork::SetSSID(SSID);
00069     return this;
00070 }
00071 
00072 WIFINetworkDetail * WIFINetworkDetail::SetSecurityMode(const SecurityMode securityMode)
00073 {
00074     WIFINetwork::SetSecurityMode(securityMode);
00075     return this;
00076 }
00077 
00078 WIFINetworkDetail * WIFINetworkDetail::SetChannel(const char channel)
00079 {
00080     WIFINetwork::SetChannel(channel);
00081     return this;
00082 }