You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to implement real-time data acquisition using a time filter (5 minutes or 10 minutes earlier from the current one). I wrote this kind of code:
final telemetryService = thingsBoardClient.getTelemetryService();
final currentTime = DateTime.now();
final startTime = currentTime.subtract(
const Duration(minutes: 5),
);
final subscription = TelemetrySubscriber(
telemetryService,
[
TimeseriesSubscriptionCmd(
entityId: DeviceId(deviceId).id!,
entityType: DeviceId(deviceId).entityType,
startTs: startTime.millisecondsSinceEpoch,
),
],
);
I receive device data in real time, but the problem is that the startTs parameter is ignored and the data does not arrive as I mentioned - 5 minutes earlier. If I need to use a different method or approach to obtain data from a certain time to now, I will be glad to hear help. In case if everything alright please look through my issue. I tested both IOS simulator and Android device
Many thanks!
The text was updated successfully, but these errors were encountered:
I want to implement real-time data acquisition using a time filter (5 minutes or 10 minutes earlier from the current one). I wrote this kind of code:
I receive device data in real time, but the problem is that the startTs parameter is ignored and the data does not arrive as I mentioned - 5 minutes earlier. If I need to use a different method or approach to obtain data from a certain time to now, I will be glad to hear help. In case if everything alright please look through my issue. I tested both IOS simulator and Android device
Many thanks!
The text was updated successfully, but these errors were encountered: