Logging while streaming

Hi!

Our customer wants to show current temperature, even while temperature is being logged. The idea is to stream temperature every 1s if the app is visible, and to log temperature every 30s for several hours. I've read in other post that streaming and logging at the same time is possible but doing it for the same data is not a recommended use case.

I have enabled streaming and logging with different routes (ensuring LOG_KEY != STREAM_KEY) and got streamed temperature entries in the log. Is there a right way of achieving this or I should discard streaming temperature while logging it?

Thanks in advance

Comments

  • Setup one 30s timer to do silent reads that go to the logger, and another 1s timer to do normal reads which the app will pick up.
This discussion has been closed.