Marco Zecchini
/
Example_RTOS
Rtos API example
mbed-os/features/netsocket/WiFiAccessPoint.cpp@0:9fca2b23d0ba, 2019-02-23 (annotated)
- Committer:
- marcozecchini
- Date:
- Sat Feb 23 12:13:36 2019 +0000
- Revision:
- 0:9fca2b23d0ba
final commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
marcozecchini | 0:9fca2b23d0ba | 1 | #include "netsocket/WiFiAccessPoint.h" |
marcozecchini | 0:9fca2b23d0ba | 2 | |
marcozecchini | 0:9fca2b23d0ba | 3 | WiFiAccessPoint::WiFiAccessPoint() |
marcozecchini | 0:9fca2b23d0ba | 4 | { |
marcozecchini | 0:9fca2b23d0ba | 5 | memset(&_ap, 0, sizeof(_ap)); |
marcozecchini | 0:9fca2b23d0ba | 6 | } |
marcozecchini | 0:9fca2b23d0ba | 7 | |
marcozecchini | 0:9fca2b23d0ba | 8 | WiFiAccessPoint::WiFiAccessPoint(nsapi_wifi_ap_t ap) |
marcozecchini | 0:9fca2b23d0ba | 9 | { |
marcozecchini | 0:9fca2b23d0ba | 10 | _ap = ap; |
marcozecchini | 0:9fca2b23d0ba | 11 | } |
marcozecchini | 0:9fca2b23d0ba | 12 | |
marcozecchini | 0:9fca2b23d0ba | 13 | const char *WiFiAccessPoint::get_ssid() const |
marcozecchini | 0:9fca2b23d0ba | 14 | { |
marcozecchini | 0:9fca2b23d0ba | 15 | return _ap.ssid; |
marcozecchini | 0:9fca2b23d0ba | 16 | } |
marcozecchini | 0:9fca2b23d0ba | 17 | |
marcozecchini | 0:9fca2b23d0ba | 18 | const uint8_t *WiFiAccessPoint::get_bssid() const |
marcozecchini | 0:9fca2b23d0ba | 19 | { |
marcozecchini | 0:9fca2b23d0ba | 20 | return _ap.bssid; |
marcozecchini | 0:9fca2b23d0ba | 21 | } |
marcozecchini | 0:9fca2b23d0ba | 22 | |
marcozecchini | 0:9fca2b23d0ba | 23 | nsapi_security_t WiFiAccessPoint::get_security() const |
marcozecchini | 0:9fca2b23d0ba | 24 | { |
marcozecchini | 0:9fca2b23d0ba | 25 | return _ap.security; |
marcozecchini | 0:9fca2b23d0ba | 26 | } |
marcozecchini | 0:9fca2b23d0ba | 27 | |
marcozecchini | 0:9fca2b23d0ba | 28 | int8_t WiFiAccessPoint::get_rssi() const |
marcozecchini | 0:9fca2b23d0ba | 29 | { |
marcozecchini | 0:9fca2b23d0ba | 30 | return _ap.rssi; |
marcozecchini | 0:9fca2b23d0ba | 31 | } |
marcozecchini | 0:9fca2b23d0ba | 32 | |
marcozecchini | 0:9fca2b23d0ba | 33 | uint8_t WiFiAccessPoint::get_channel() const |
marcozecchini | 0:9fca2b23d0ba | 34 | { |
marcozecchini | 0:9fca2b23d0ba | 35 | return _ap.channel; |
marcozecchini | 0:9fca2b23d0ba | 36 | } |
marcozecchini | 0:9fca2b23d0ba | 37 |