Add WEP wifi network security
This commit is contained in:
parent
403e14c320
commit
582e362aae
|
@ -21,7 +21,9 @@ const (
|
||||||
type WifiSecurity string
|
type WifiSecurity string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// SecurityWPAPSK WPA-PSK wifi network
|
// SecurityWEP WEP wifi network
|
||||||
|
SecurityWEP WifiSecurity = "wep"
|
||||||
|
// SecurityWPAPSK WPA(2)-PSK wifi network
|
||||||
SecurityWPAPSK WifiSecurity = "wpa-psk"
|
SecurityWPAPSK WifiSecurity = "wpa-psk"
|
||||||
// SecurityOpen Open wifi network
|
// SecurityOpen Open wifi network
|
||||||
SecurityOpen WifiSecurity = "open"
|
SecurityOpen WifiSecurity = "open"
|
||||||
|
@ -29,8 +31,6 @@ const (
|
||||||
|
|
||||||
// WifiNetwork is a ReachRS module's saved wifi network
|
// WifiNetwork is a ReachRS module's saved wifi network
|
||||||
// Raw messages examples:
|
// Raw messages examples:
|
||||||
// [{"ssid":"Cadoles","password":"...","security":"wpa-psk","identity":""}]
|
|
||||||
// [{"is_visible":false,"connected":false,"ssid":"Cadoles","security":"wpa-psk","is_connected":false,"is_added":true}]]
|
|
||||||
type WifiNetwork struct {
|
type WifiNetwork struct {
|
||||||
SSID string `json:"ssid"`
|
SSID string `json:"ssid"`
|
||||||
Password string `json:"password"`
|
Password string `json:"password"`
|
||||||
|
|
Reference in New Issue