XYOracleNetwork/sdk-xyo-client-swift

View on GitHub
Sources/XyoClient/XyoWitness/SystemInfo/SystemInfoNetworkWifiPayloadStruct.swift

Summary

Maintainability
A
0 mins
Test Coverage
import Foundation

struct XyoSystemInfoNetworkWifiPayloadStruct: Encodable {
    var ip: String?
    var mac: String?
    var rssi: Int?
    var security: String?
    var ssid: String?
    var txPower: Int?
    init(_ wifiInfo: WifiInformation?) {
        ssid = wifiInfo?.ssid()
        mac = wifiInfo?.mac()
        rssi = wifiInfo?.rssi()
        txPower = wifiInfo?.txPower()
        security = wifiInfo?.security()
        ip = wifiInfo?.pathMonitor?.ip
    }
}