INNER CODE UNIT · Go

timeStart

unitedrhino/things · tools/areastat/main.go:85

	timeStart := now - *timeWindow*1000
	timeEnd := now

	msgClient := dm.NewDeviceMsgClient(conn)
	aggResp, err := msgClient.PropertyLogAggGetList(ctx, &dm.PropertyAggGetListReq{
		ProductID:  *productID,
		AreaIDPath: finalAreaIDPath,
		TimeStart:  timeStart,
		TimeEnd:    timeEnd,
		Aggs: []*dm.PropertyAgg{
			{
				DataID:   *dataID,
				ArgFuncs: []string{*statFunc},
			},
		},
	})
	if err != nil {
		fmt.Fprintf(os.Stderr, "聚合查询失败: %v\n", err)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…