user20568221
user20568221

Reputation: 13

How to retrieve telemetry for customer’s all devices from Thingsboard

If I have this kind of thingsboard entities There are Device D1,D2 and Customer C1

First time, I assigned D1 device to C1 customer

--> D1-C1

and later I unassigned C1 from D1, and I assigned D2 device to C1 customer.

--> D2-C1

then is it possible to check that customer's all telemetry C1 used? In this case I want to retrieve C1 customer's data : all telemetry from Device D1, D2 (please see attached image)

Actually I don't know how to retrieve all those data from many devices. should I use rule chain or rest api?

imgae

Upvotes: 1

Views: 767

Answers (1)

devaskim
devaskim

Reputation: 559

Rule Chain would help you if each device has unique set of telemetry names. In such case every time when new data comes to server you could redirect it from device to customer using Change originator node

In your case try to use two-step REST calls:

  1. Get list of customer's devices
  2. Get telemetry for each device.

Upvotes: 1

Related Questions