| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This sensor allows us to handle WiFi conditions and events.
iOS 13 or later
You can integrate this framework into your project via Swift Package Manager (SwiftPM).
Open Package Manager Windows
Find the package using the manager
Import the package into your target.
Turn ON Access WiFi Information capability on the Xcode project
Class to hold the configuration of the sensor.
| Field | Type | Description |
|---|---|---|
| bssid | String | access point BSSID (MAC address) |
| ssid | String | access point network name |
| security | String | security mode of the access point |
| frequency | Int | frequency of the access point (MHz) |
| rssi | Int | received signal strength in dBm |
| deviceId | String | AWARE device UUID |
| label | String | Customizable label. Useful for data calibration or traceability |
| timestamp | Int64 | Unixtime milliseconds since 1970 |
| timezone | Int | Timezone of the device |
| os | String | Operating system of the device (ex. ios) |
| jsonVersion | Int | JSON schema version |
Contains the current device's own WiFi connection info.
| Field | Type | Description |
|---|---|---|
| macAddress | String | MAC address of the device's WiFi interface |
| bssid | String | BSSID of the connected access point |
| ssid | String | SSID of the connected access point |
| deviceId | String | AWARE device UUID |
| label | String | Customizable label. Useful for data calibration or traceability |
| timestamp | Int64 | Unixtime milliseconds since 1970 |
| timezone | Int | Timezone of the device |
| os | String | Operating system of the device (ex. ios) |
| jsonVersion | Int | JSON schema version |
let wifiSensor = WiFiSensor.init(WifiSensor.Config().apply { config in
config.sensorObserver = Observer()
config.scanIntervalSeconds = 60
config.debug = true
// more configuration ...
})
// To start the sensor
wifiSensor.start()
// To stop the sensor
wifiSensor.stop()// Implement an interface of WifiObserver
class Observer:WiFiObserver {
func onWiFiAPDetected(data: WiFiScanData) {
// Your code here ..
}
func onWiFiDisabled() {
// Your code here ..
}
func onWiFiScanStarted() {
// Your code here ..
}
func onWiFiScanEnded() {
// Your code here ..
}
}Yuuki Nishiyama (The University of Tokyo), nishiyama@csis.u-tokyo.ac.jp
Copyright (c) 2025 AWARE Mobile Context Instrumentation Middleware/Framework (http://www.awareframework.com)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
| Back | FazBrowse Home | New Git URL |