BBR 1 Ebene

Committer:
borlanic
Date:
Mon May 14 11:29:06 2018 +0000
Revision:
0:fbdae7e6d805
BBR

Who changed what in which revision?

UserRevisionLine numberNew contents of line
borlanic 0:fbdae7e6d805 1 #include "netsocket/WiFiAccessPoint.h"
borlanic 0:fbdae7e6d805 2
borlanic 0:fbdae7e6d805 3 WiFiAccessPoint::WiFiAccessPoint()
borlanic 0:fbdae7e6d805 4 {
borlanic 0:fbdae7e6d805 5 memset(&_ap, 0, sizeof(_ap));
borlanic 0:fbdae7e6d805 6 }
borlanic 0:fbdae7e6d805 7
borlanic 0:fbdae7e6d805 8 WiFiAccessPoint::WiFiAccessPoint(nsapi_wifi_ap_t ap)
borlanic 0:fbdae7e6d805 9 {
borlanic 0:fbdae7e6d805 10 _ap = ap;
borlanic 0:fbdae7e6d805 11 }
borlanic 0:fbdae7e6d805 12
borlanic 0:fbdae7e6d805 13 const char *WiFiAccessPoint::get_ssid() const
borlanic 0:fbdae7e6d805 14 {
borlanic 0:fbdae7e6d805 15 return _ap.ssid;
borlanic 0:fbdae7e6d805 16 }
borlanic 0:fbdae7e6d805 17
borlanic 0:fbdae7e6d805 18 const uint8_t *WiFiAccessPoint::get_bssid() const
borlanic 0:fbdae7e6d805 19 {
borlanic 0:fbdae7e6d805 20 return _ap.bssid;
borlanic 0:fbdae7e6d805 21 }
borlanic 0:fbdae7e6d805 22
borlanic 0:fbdae7e6d805 23 nsapi_security_t WiFiAccessPoint::get_security() const
borlanic 0:fbdae7e6d805 24 {
borlanic 0:fbdae7e6d805 25 return _ap.security;
borlanic 0:fbdae7e6d805 26 }
borlanic 0:fbdae7e6d805 27
borlanic 0:fbdae7e6d805 28 int8_t WiFiAccessPoint::get_rssi() const
borlanic 0:fbdae7e6d805 29 {
borlanic 0:fbdae7e6d805 30 return _ap.rssi;
borlanic 0:fbdae7e6d805 31 }
borlanic 0:fbdae7e6d805 32
borlanic 0:fbdae7e6d805 33 uint8_t WiFiAccessPoint::get_channel() const
borlanic 0:fbdae7e6d805 34 {
borlanic 0:fbdae7e6d805 35 return _ap.channel;
borlanic 0:fbdae7e6d805 36 }
borlanic 0:fbdae7e6d805 37