Skip to content

Commit

Permalink
Update AP integration for API changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
patfair committed Jun 16, 2024
1 parent 3dc260f commit 8b9ccaf
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions network/access_point.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ type accessPointStatus struct {
}

type stationStatus struct {
Ssid string `json:"ssid"`
HashedWpaKey string `json:"hashedWpaKey"`
WpaKeySalt string `json:"wpaKeySalt"`
IsRobotRadioLinked bool `json:"isRobotRadioLinked"`
RxRateMbps float64 `json:"rxRateMbps"`
TxRateMbps float64 `json:"txRateMbps"`
SignalNoiseRatio int `json:"signalNoiseRatio"`
BandwidthUsedMbps float64 `json:"bandwidthUsedMbps"`
Ssid string `json:"ssid"`
HashedWpaKey string `json:"hashedWpaKey"`
WpaKeySalt string `json:"wpaKeySalt"`
IsLinked bool `json:"isLinked"`
RxRateMbps float64 `json:"rxRateMbps"`
TxRateMbps float64 `json:"txRateMbps"`
SignalNoiseRatio int `json:"signalNoiseRatio"`
BandwidthUsedMbps float64 `json:"bandwidthUsedMbps"`
}

func (ap *AccessPoint) SetSettings(
Expand Down Expand Up @@ -227,7 +227,7 @@ func updateTeamWifiStatus(teamWifiStatus *TeamWifiStatus, stationStatus *station
teamWifiStatus.SignalNoiseRatio = 0
} else {
teamWifiStatus.TeamId, _ = strconv.Atoi(stationStatus.Ssid)
teamWifiStatus.RadioLinked = stationStatus.IsRobotRadioLinked
teamWifiStatus.RadioLinked = stationStatus.IsLinked
teamWifiStatus.MBits = stationStatus.BandwidthUsedMbps
teamWifiStatus.RxRate = stationStatus.RxRateMbps
teamWifiStatus.TxRate = stationStatus.TxRateMbps
Expand Down

0 comments on commit 8b9ccaf

Please sign in to comment.