@ -70,3 +70,7 @@ func (the *IotaData) R() string {
func (the *IotaData) GetThingId() string {
return the.ThingId
}
func (the *IotaData) GetDeviceId() string {
return the.DeviceId
@ -33,6 +33,11 @@ func (the *AggData) GetThingId() string {
// GetDeviceId 功能未实现的功能,会返回“”,只是未了实现接口 IDataTrace
func (the *AggData) GetDeviceId() string {
return "unknown"
var typeDict = map[int]string{
2001: "d",
2002: "w",
@ -13,4 +13,6 @@ type IDataTrace interface {
R() string
GetThingId() string
GetDeviceId() string