mbed-os for GR-LYCHEE
Dependents: mbed-os-example-blinky-gr-lychee GR-Boads_Camera_sample GR-Boards_Audio_Recoder GR-Boads_Camera_DisplayApp ... more
features/netsocket/WiFiAccessPoint.cpp@0:f782d9c66c49, 2018-02-02 (annotated)
- Committer:
- dkato
- Date:
- Fri Feb 02 05:42:23 2018 +0000
- Revision:
- 0:f782d9c66c49
mbed-os for GR-LYCHEE
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dkato | 0:f782d9c66c49 | 1 | #include "netsocket/WiFiAccessPoint.h" |
dkato | 0:f782d9c66c49 | 2 | |
dkato | 0:f782d9c66c49 | 3 | WiFiAccessPoint::WiFiAccessPoint() |
dkato | 0:f782d9c66c49 | 4 | { |
dkato | 0:f782d9c66c49 | 5 | memset(&_ap, 0, sizeof(_ap)); |
dkato | 0:f782d9c66c49 | 6 | } |
dkato | 0:f782d9c66c49 | 7 | |
dkato | 0:f782d9c66c49 | 8 | WiFiAccessPoint::WiFiAccessPoint(nsapi_wifi_ap_t ap) |
dkato | 0:f782d9c66c49 | 9 | { |
dkato | 0:f782d9c66c49 | 10 | _ap = ap; |
dkato | 0:f782d9c66c49 | 11 | } |
dkato | 0:f782d9c66c49 | 12 | |
dkato | 0:f782d9c66c49 | 13 | const char *WiFiAccessPoint::get_ssid() const |
dkato | 0:f782d9c66c49 | 14 | { |
dkato | 0:f782d9c66c49 | 15 | return _ap.ssid; |
dkato | 0:f782d9c66c49 | 16 | } |
dkato | 0:f782d9c66c49 | 17 | |
dkato | 0:f782d9c66c49 | 18 | const uint8_t *WiFiAccessPoint::get_bssid() const |
dkato | 0:f782d9c66c49 | 19 | { |
dkato | 0:f782d9c66c49 | 20 | return _ap.bssid; |
dkato | 0:f782d9c66c49 | 21 | } |
dkato | 0:f782d9c66c49 | 22 | |
dkato | 0:f782d9c66c49 | 23 | nsapi_security_t WiFiAccessPoint::get_security() const |
dkato | 0:f782d9c66c49 | 24 | { |
dkato | 0:f782d9c66c49 | 25 | return _ap.security; |
dkato | 0:f782d9c66c49 | 26 | } |
dkato | 0:f782d9c66c49 | 27 | |
dkato | 0:f782d9c66c49 | 28 | int8_t WiFiAccessPoint::get_rssi() const |
dkato | 0:f782d9c66c49 | 29 | { |
dkato | 0:f782d9c66c49 | 30 | return _ap.rssi; |
dkato | 0:f782d9c66c49 | 31 | } |
dkato | 0:f782d9c66c49 | 32 | |
dkato | 0:f782d9c66c49 | 33 | uint8_t WiFiAccessPoint::get_channel() const |
dkato | 0:f782d9c66c49 | 34 | { |
dkato | 0:f782d9c66c49 | 35 | return _ap.channel; |
dkato | 0:f782d9c66c49 | 36 | } |
dkato | 0:f782d9c66c49 | 37 |