When using atomicState, if you perform a write, does it return after the update to persistent storage is finished? Or can it can possibly return before an update to persistence storage (Is the write() call to the database synchronous or asynchronous?)? In the diagrams found in the ST architecture documentation, it looks as if execution can proceed without the write call to return.
Put in other words is that what happens: write()-> issue request to persistence storage-> return while persistence storage update is in-progress?
Sorry, I understand that this topic is very old, however, I did not see specific answers to the question asked, and at the moment the use of atomicState create some problems for my storage of information. Some data is not saved in the storage, being created a parallel source, please explain how to create a common data storage. Basically I use the collected information to assign it to the created list of companies. I make reports on the performance of each company and draw up charts of their market popularity. From the moment I began to use atomicState, the data was no longer assigned to the desired table, because of this, I cannot fix my system. Any help, please!
Hi, there!
Are you referring to the usage of atomicState at an element of the Groovy IDE tool of the SmartThings platform? (eg. DTH, SmartApp)
If so, in order to keep track of this issue effectively, please open a new thread, here at the Developer Programs section and give more details about your situation (Error logs, your DTH/SmartApp source code, etc.).
This way, as the thread owner, you will be able to mark which post was the solution.