wifictld-analyzer/data/wifi_client.go

28 lines
686 B
Go
Raw Normal View History

2018-06-02 01:00:54 +02:00
package data
2019-03-01 10:54:19 +01:00
import "time"
2018-06-02 01:00:54 +02:00
const (
// default multicast group used by announced
MulticastAddressDefault = "ff02::31f1"
// default udp port used by announced
Port = 1000
// maximum receivable size
MaxDataGramSize = 256
)
// WifiClient datatype of wifictld
type WifiClient struct {
2019-03-01 10:54:19 +01:00
Addr HardwareAddr `json:"addr"`
Time time.Time `json:"time"`
TryProbe uint16 `json:"try_probe"`
TryAuth uint16 `json:"try_auth"`
Connected bool `json:"connected"`
Authed bool `json:"authed"`
FreqHighest uint16 `json:"freq_highest"`
SignalLowFreq int16 `json:"signal_low_freq"`
SignalHighFreq int16 `json:"signal_high_freq"`
2018-06-02 01:00:54 +02:00
}