Mistake on this page?
Report an issue in GitHub or email us
WiFiAccessPoint.h
1 /* WiFiInterface
2  * Copyright (c) 2015 - 2016 ARM Limited
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 #ifndef WIFI_ACCESS_POINT_H
19 #define WIFI_ACCESS_POINT_H
20 
21 #include <string.h>
22 #include "netsocket/nsapi_types.h"
23 
24 /** WiFiAccessPoint class
25  *
26  * Class that represents a WiFi Access Point
27  * Common interface that is shared between WiFi devices
28  */
30  /** WiFiAccessPoint lifetime
31  */
32 public:
35 
36  /** Get an access point's ssid
37  *
38  * @return The ssid of the access point
39  */
40  const char *get_ssid() const;
41 
42  /** Get an access point's bssid
43  *
44  * @return The bssid of the access point
45  */
46  const uint8_t *get_bssid() const;
47 
48  /** Get an access point's security
49  *
50  * @return The security type of the access point
51  */
53 
54  /** Gets the radio signal strength for the access point
55  *
56  * @return Connection strength in dBm (negative value),
57  * or 0 if measurement impossible
58  */
59  int8_t get_rssi() const;
60 
61  /** Get the access point's channel
62  *
63  * @return The channel of the access point
64  */
65  uint8_t get_channel() const;
66 
67 private:
68  nsapi_wifi_ap_t _ap {};
69 };
70 
71 #endif
WiFiAccessPoint()
WiFiAccessPoint lifetime.
int8_t get_rssi() const
Gets the radio signal strength for the access point.
const char * get_ssid() const
Get an access point&#39;s ssid.
uint8_t get_channel() const
Get the access point&#39;s channel.
nsapi_wifi_ap structure
Definition: nsapi_types.h:354
const uint8_t * get_bssid() const
Get an access point&#39;s bssid.
enum nsapi_security nsapi_security_t
Enum of encryption types.
nsapi_security_t get_security() const
Get an access point&#39;s security.
WiFiAccessPoint class.
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.