Browse Source

aggData.GetDeviceId()返回SensorId

dev v0.0.10
yfh 4 months ago
parent
commit
3541e54584
  1. 4
      aggData.go

4
aggData.go

@ -33,9 +33,9 @@ func (the *AggData) GetThingId() string {
return the.ThingId return the.ThingId
} }
// GetDeviceId 功能未实现的功能,会返回“”,只是未了实现接口 IDataTrace // GetDeviceId 返回SensorId
func (the *AggData) GetDeviceId() string { func (the *AggData) GetDeviceId() string {
return "unknown" return fmt.Sprintf("%d", the.SensorId)
} }
var typeDict = map[int]string{ var typeDict = map[int]string{

Loading…
Cancel
Save