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
From the documentation,and after perusing through some of code, I gather that MQTT enqueues QOS level 1 and 2 messages (regardless of whether the persistence handler is enabled or not). My question is, where is this persisted data stored? Is it stored in RAM or in Flash? Will it exist (still be enqueued) if my device powers down?
The text was updated successfully, but these errors were encountered:
Data is stored in RAM, if you want to have some persistence to flash you can implement a custom outbox. We have an example showing usage of C++ allocators. You can use it to see the changes needed in the configuration and how to set the build.
@Teesmo it will depend on your application and message types.
From the mqtt client code it is possible and at first glance it could be a simple change from our current outbox implementation. You would need to change the allocations in this function. You need to pay attention to other factors like the core that can access the memory you select and the available size to use.
From the documentation,and after perusing through some of code, I gather that MQTT enqueues QOS level 1 and 2 messages (regardless of whether the persistence handler is enabled or not). My question is, where is this persisted data stored? Is it stored in RAM or in Flash? Will it exist (still be enqueued) if my device powers down?
The text was updated successfully, but these errors were encountered: