protocol.go 346 B

1234567891011
  1. package protocol
  2. type Data struct {
  3. Temperature float32 `json:"temperature"` // 温度
  4. Humidly float32 `json:"humidly"` // 湿度
  5. }
  6. type SetOffSetParams struct {
  7. Act int `json:"act"` // 操作类型:(1:使能温度校准2:关闭温度校准 3:使能湿度校准 4:关闭湿度校准)
  8. Value int `json:"value"` // 偏移值
  9. }