Rtos API example

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers WiFiAccessPoint.cpp Source File

WiFiAccessPoint.cpp

00001 #include "netsocket/WiFiAccessPoint.h"
00002 
00003 WiFiAccessPoint::WiFiAccessPoint()
00004 {
00005     memset(&_ap, 0, sizeof(_ap));
00006 }
00007 
00008 WiFiAccessPoint::WiFiAccessPoint(nsapi_wifi_ap_t ap)
00009 {
00010     _ap = ap;
00011 }
00012 
00013 const char *WiFiAccessPoint::get_ssid() const
00014 {
00015     return _ap.ssid;
00016 }
00017 
00018 const uint8_t *WiFiAccessPoint::get_bssid() const
00019 {
00020     return _ap.bssid;
00021 }
00022 
00023 nsapi_security_t WiFiAccessPoint::get_security() const
00024 {
00025     return _ap.security;
00026 }
00027 
00028 int8_t WiFiAccessPoint::get_rssi() const
00029 {
00030     return _ap.rssi;
00031 }
00032 
00033 uint8_t WiFiAccessPoint::get_channel() const
00034 {
00035     return _ap.channel;
00036 }
00037