moscajs / mosca

MQTT broker as a module
mosca.io
3.2k stars 508 forks source link

Historical Data & Persistence #595

Closed diginfo closed 7 years ago

diginfo commented 7 years ago

I guess I am a bit confused over the persistence setup, initially I thought that it allowed received data to be saved so that you could view historical data as well as now data.

But now I think it is probably just to allow resuming in the case of a crash, or engine restart etc ?

Can you clarify this and also let me know how I can store / retrieve historical data.

Many Thanks

mcollina commented 7 years ago

Persistence is for storing retained messages, and provide offline capabilities for the devices. If you need to integrate a time series tracker, it is possible via the 'publish' but you will have to provide your own logic. Let me know if you need help with that.

diginfo commented 7 years ago

Thanks so much for replying, appreciate that.

But could you explain how I can access historical data, as at the moment all I am able to see is the live data.

Many Thanks