Daniel Vizcaya
/
04_RTOS_Embebidos
Entrega 3er corte - sistemas embebidos
mbed-os/features/netsocket/WiFiAccessPoint.cpp@0:6ad07c9019fd, 2018-05-30 (annotated)
- Committer:
- Bethory
- Date:
- Wed May 30 00:01:50 2018 +0000
- Revision:
- 0:6ad07c9019fd
Codigo de tales para todos los pasculaes
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Bethory | 0:6ad07c9019fd | 1 | #include "netsocket/WiFiAccessPoint.h" |
Bethory | 0:6ad07c9019fd | 2 | |
Bethory | 0:6ad07c9019fd | 3 | WiFiAccessPoint::WiFiAccessPoint() |
Bethory | 0:6ad07c9019fd | 4 | { |
Bethory | 0:6ad07c9019fd | 5 | memset(&_ap, 0, sizeof(_ap)); |
Bethory | 0:6ad07c9019fd | 6 | } |
Bethory | 0:6ad07c9019fd | 7 | |
Bethory | 0:6ad07c9019fd | 8 | WiFiAccessPoint::WiFiAccessPoint(nsapi_wifi_ap_t ap) |
Bethory | 0:6ad07c9019fd | 9 | { |
Bethory | 0:6ad07c9019fd | 10 | _ap = ap; |
Bethory | 0:6ad07c9019fd | 11 | } |
Bethory | 0:6ad07c9019fd | 12 | |
Bethory | 0:6ad07c9019fd | 13 | const char *WiFiAccessPoint::get_ssid() const |
Bethory | 0:6ad07c9019fd | 14 | { |
Bethory | 0:6ad07c9019fd | 15 | return _ap.ssid; |
Bethory | 0:6ad07c9019fd | 16 | } |
Bethory | 0:6ad07c9019fd | 17 | |
Bethory | 0:6ad07c9019fd | 18 | const uint8_t *WiFiAccessPoint::get_bssid() const |
Bethory | 0:6ad07c9019fd | 19 | { |
Bethory | 0:6ad07c9019fd | 20 | return _ap.bssid; |
Bethory | 0:6ad07c9019fd | 21 | } |
Bethory | 0:6ad07c9019fd | 22 | |
Bethory | 0:6ad07c9019fd | 23 | nsapi_security_t WiFiAccessPoint::get_security() const |
Bethory | 0:6ad07c9019fd | 24 | { |
Bethory | 0:6ad07c9019fd | 25 | return _ap.security; |
Bethory | 0:6ad07c9019fd | 26 | } |
Bethory | 0:6ad07c9019fd | 27 | |
Bethory | 0:6ad07c9019fd | 28 | int8_t WiFiAccessPoint::get_rssi() const |
Bethory | 0:6ad07c9019fd | 29 | { |
Bethory | 0:6ad07c9019fd | 30 | return _ap.rssi; |
Bethory | 0:6ad07c9019fd | 31 | } |
Bethory | 0:6ad07c9019fd | 32 | |
Bethory | 0:6ad07c9019fd | 33 | uint8_t WiFiAccessPoint::get_channel() const |
Bethory | 0:6ad07c9019fd | 34 | { |
Bethory | 0:6ad07c9019fd | 35 | return _ap.channel; |
Bethory | 0:6ad07c9019fd | 36 | } |
Bethory | 0:6ad07c9019fd | 37 |