Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: features/netsocket/WiFiAccessPoint.cpp
- Revision:
- 0:38ceb79fef03
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/features/netsocket/WiFiAccessPoint.cpp Wed Nov 28 15:10:15 2018 +0000
@@ -0,0 +1,37 @@
+#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;
+}
+