Pinned to some recent date
features/netsocket/WiFiAccessPoint.cpp@0:fb7af294d5d9, 2016-11-17 (annotated)
- Committer:
- Simon Cooksey
- Date:
- Thu Nov 17 16:43:53 2016 +0000
- Revision:
- 0:fb7af294d5d9
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Simon Cooksey |
0:fb7af294d5d9 | 1 | #include "netsocket/WiFiAccessPoint.h" |
Simon Cooksey |
0:fb7af294d5d9 | 2 | |
Simon Cooksey |
0:fb7af294d5d9 | 3 | WiFiAccessPoint::WiFiAccessPoint() |
Simon Cooksey |
0:fb7af294d5d9 | 4 | { |
Simon Cooksey |
0:fb7af294d5d9 | 5 | memset(&_ap, 0, sizeof(_ap)); |
Simon Cooksey |
0:fb7af294d5d9 | 6 | } |
Simon Cooksey |
0:fb7af294d5d9 | 7 | |
Simon Cooksey |
0:fb7af294d5d9 | 8 | WiFiAccessPoint::WiFiAccessPoint(nsapi_wifi_ap_t ap) |
Simon Cooksey |
0:fb7af294d5d9 | 9 | { |
Simon Cooksey |
0:fb7af294d5d9 | 10 | _ap = ap; |
Simon Cooksey |
0:fb7af294d5d9 | 11 | } |
Simon Cooksey |
0:fb7af294d5d9 | 12 | |
Simon Cooksey |
0:fb7af294d5d9 | 13 | const char *WiFiAccessPoint::get_ssid() const |
Simon Cooksey |
0:fb7af294d5d9 | 14 | { |
Simon Cooksey |
0:fb7af294d5d9 | 15 | return _ap.ssid; |
Simon Cooksey |
0:fb7af294d5d9 | 16 | } |
Simon Cooksey |
0:fb7af294d5d9 | 17 | |
Simon Cooksey |
0:fb7af294d5d9 | 18 | const uint8_t *WiFiAccessPoint::get_bssid() const |
Simon Cooksey |
0:fb7af294d5d9 | 19 | { |
Simon Cooksey |
0:fb7af294d5d9 | 20 | return _ap.bssid; |
Simon Cooksey |
0:fb7af294d5d9 | 21 | } |
Simon Cooksey |
0:fb7af294d5d9 | 22 | |
Simon Cooksey |
0:fb7af294d5d9 | 23 | nsapi_security_t WiFiAccessPoint::get_security() const |
Simon Cooksey |
0:fb7af294d5d9 | 24 | { |
Simon Cooksey |
0:fb7af294d5d9 | 25 | return _ap.security; |
Simon Cooksey |
0:fb7af294d5d9 | 26 | } |
Simon Cooksey |
0:fb7af294d5d9 | 27 | |
Simon Cooksey |
0:fb7af294d5d9 | 28 | int8_t WiFiAccessPoint::get_rssi() const |
Simon Cooksey |
0:fb7af294d5d9 | 29 | { |
Simon Cooksey |
0:fb7af294d5d9 | 30 | return _ap.rssi; |
Simon Cooksey |
0:fb7af294d5d9 | 31 | } |
Simon Cooksey |
0:fb7af294d5d9 | 32 | |
Simon Cooksey |
0:fb7af294d5d9 | 33 | uint8_t WiFiAccessPoint::get_channel() const |
Simon Cooksey |
0:fb7af294d5d9 | 34 | { |
Simon Cooksey |
0:fb7af294d5d9 | 35 | return _ap.channel; |
Simon Cooksey |
0:fb7af294d5d9 | 36 | } |
Simon Cooksey |
0:fb7af294d5d9 | 37 |