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

Committer:
dkato
Date:
2018-02-02
Revision:
0:f782d9c66c49

File content as of revision 0:f782d9c66c49:

#include "netsocket/WiFiAccessPoint.h"

WiFiAccessPoint::WiFiAccessPoint()
{
    memset(&_ap, 0, sizeof(_ap));
}

WiFiAccessPoint::WiFiAccessPoint(nsapi_wifi_ap_t ap)
{
    _ap = ap;
}

const char *WiFiAccessPoint::get_ssid() const
{
    return _ap.ssid;
}

const uint8_t *WiFiAccessPoint::get_bssid() const
{
    return _ap.bssid;
}

nsapi_security_t WiFiAccessPoint::get_security() const
{
    return _ap.security;
}

int8_t WiFiAccessPoint::get_rssi() const
{
    return _ap.rssi;
}

uint8_t WiFiAccessPoint::get_channel() const
{
    return _ap.channel;
}