Go Down

Topic: Bridge key/value not being stored (Read 442 times) previous topic - next topic

mearsy25

Hi,

Odd problem. When using http://solar.local/keystore_manager_example/

I store a couple of keys. and the reload button loads them fine but if i go away from the page and back to it again it shows storage is empty.

Similar thing If I do this with a rest call. in my arduino code when i retrieve with bridge.get() I just see corrupt data

Any idea which file stores the bridge keys and if it can be deleted/replaced

thanks

jessemonroy650

Hi,

Odd problem. When using http://solar.local/keystore_manager_example/

I store a couple of keys. and the reload button loads them fine but if i go away from the page and back to it again it shows storage is empty.

Similar thing If I do this with a rest call. in my arduino code when i retrieve with bridge.get() I just see corrupt data

Any idea which file stores the bridge keys and if it can be deleted/replaced

thanks
@mearsy25,
is not for permanent storage. It uses the cache with the webserver. The code is written in Lua. If you look on the Linux system of your Yun, you will find a file in the /tmp directory that is create when you make a call to the bridge. It is deleted (or invalidated) at an arbitrary time (meaning know one really knows - it is a cache after all). The cache is likely invalidated when you disconnect your browser connection.

Does this help?
Jesse

Go Up