Development mbed library for MAX32630FTHR

Dependents:   blinky_max32630fthr

Committer:
switches
Date:
Fri Nov 11 20:59:50 2016 +0000
Revision:
0:5c4d7b2438d3
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
switches 0:5c4d7b2438d3 1 #include "netsocket/WiFiAccessPoint.h"
switches 0:5c4d7b2438d3 2
switches 0:5c4d7b2438d3 3 WiFiAccessPoint::WiFiAccessPoint()
switches 0:5c4d7b2438d3 4 {
switches 0:5c4d7b2438d3 5 memset(&_ap, 0, sizeof(_ap));
switches 0:5c4d7b2438d3 6 }
switches 0:5c4d7b2438d3 7
switches 0:5c4d7b2438d3 8 WiFiAccessPoint::WiFiAccessPoint(nsapi_wifi_ap_t ap)
switches 0:5c4d7b2438d3 9 {
switches 0:5c4d7b2438d3 10 _ap = ap;
switches 0:5c4d7b2438d3 11 }
switches 0:5c4d7b2438d3 12
switches 0:5c4d7b2438d3 13 const char *WiFiAccessPoint::get_ssid() const
switches 0:5c4d7b2438d3 14 {
switches 0:5c4d7b2438d3 15 return _ap.ssid;
switches 0:5c4d7b2438d3 16 }
switches 0:5c4d7b2438d3 17
switches 0:5c4d7b2438d3 18 const uint8_t *WiFiAccessPoint::get_bssid() const
switches 0:5c4d7b2438d3 19 {
switches 0:5c4d7b2438d3 20 return _ap.bssid;
switches 0:5c4d7b2438d3 21 }
switches 0:5c4d7b2438d3 22
switches 0:5c4d7b2438d3 23 nsapi_security_t WiFiAccessPoint::get_security() const
switches 0:5c4d7b2438d3 24 {
switches 0:5c4d7b2438d3 25 return _ap.security;
switches 0:5c4d7b2438d3 26 }
switches 0:5c4d7b2438d3 27
switches 0:5c4d7b2438d3 28 int8_t WiFiAccessPoint::get_rssi() const
switches 0:5c4d7b2438d3 29 {
switches 0:5c4d7b2438d3 30 return _ap.rssi;
switches 0:5c4d7b2438d3 31 }
switches 0:5c4d7b2438d3 32
switches 0:5c4d7b2438d3 33 uint8_t WiFiAccessPoint::get_channel() const
switches 0:5c4d7b2438d3 34 {
switches 0:5c4d7b2438d3 35 return _ap.channel;
switches 0:5c4d7b2438d3 36 }
switches 0:5c4d7b2438d3 37