mbed-os
Fork of mbed-os by
features/netsocket/WiFiAccessPoint.cpp@1:3deb71413561, 2017-07-20 (annotated)
- Committer:
- xuaner
- Date:
- Thu Jul 20 14:26:57 2017 +0000
- Revision:
- 1:3deb71413561
- Parent:
- 0:f269e3021894
mbed_os
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
elessair | 0:f269e3021894 | 1 | #include "netsocket/WiFiAccessPoint.h" |
elessair | 0:f269e3021894 | 2 | |
elessair | 0:f269e3021894 | 3 | WiFiAccessPoint::WiFiAccessPoint() |
elessair | 0:f269e3021894 | 4 | { |
elessair | 0:f269e3021894 | 5 | memset(&_ap, 0, sizeof(_ap)); |
elessair | 0:f269e3021894 | 6 | } |
elessair | 0:f269e3021894 | 7 | |
elessair | 0:f269e3021894 | 8 | WiFiAccessPoint::WiFiAccessPoint(nsapi_wifi_ap_t ap) |
elessair | 0:f269e3021894 | 9 | { |
elessair | 0:f269e3021894 | 10 | _ap = ap; |
elessair | 0:f269e3021894 | 11 | } |
elessair | 0:f269e3021894 | 12 | |
elessair | 0:f269e3021894 | 13 | const char *WiFiAccessPoint::get_ssid() const |
elessair | 0:f269e3021894 | 14 | { |
elessair | 0:f269e3021894 | 15 | return _ap.ssid; |
elessair | 0:f269e3021894 | 16 | } |
elessair | 0:f269e3021894 | 17 | |
elessair | 0:f269e3021894 | 18 | const uint8_t *WiFiAccessPoint::get_bssid() const |
elessair | 0:f269e3021894 | 19 | { |
elessair | 0:f269e3021894 | 20 | return _ap.bssid; |
elessair | 0:f269e3021894 | 21 | } |
elessair | 0:f269e3021894 | 22 | |
elessair | 0:f269e3021894 | 23 | nsapi_security_t WiFiAccessPoint::get_security() const |
elessair | 0:f269e3021894 | 24 | { |
elessair | 0:f269e3021894 | 25 | return _ap.security; |
elessair | 0:f269e3021894 | 26 | } |
elessair | 0:f269e3021894 | 27 | |
elessair | 0:f269e3021894 | 28 | int8_t WiFiAccessPoint::get_rssi() const |
elessair | 0:f269e3021894 | 29 | { |
elessair | 0:f269e3021894 | 30 | return _ap.rssi; |
elessair | 0:f269e3021894 | 31 | } |
elessair | 0:f269e3021894 | 32 | |
elessair | 0:f269e3021894 | 33 | uint8_t WiFiAccessPoint::get_channel() const |
elessair | 0:f269e3021894 | 34 | { |
elessair | 0:f269e3021894 | 35 | return _ap.channel; |
elessair | 0:f269e3021894 | 36 | } |
elessair | 0:f269e3021894 | 37 |