# Persist.save(), persist.load() between 2 applications

**URL:** <https://forum.sierrawireless.com/t/persist-save-persist-load-between-2-applications/20401>\
**Category:** ALEOS Application Framework\
**Created:** [May 21, 2020, 11:24am UTC](https://forum.sierrawireless.com/t/persist-save-persist-load-between-2-applications/20401 "2020-05-21T11:24:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pcomb314](https://avatars.discourse-cdn.com/v4/letter/p/e8c25b/32.png) [@pcomb314](https://forum.sierrawireless.com/u/pcomb314)\
**Post date:** [May 21, 2020, 11:24am UTC](https://forum.sierrawireless.com/t/persist-save-persist-load-between-2-applications/20401/1 "2020-05-21T11:24:26Z")

</div>

GX450  
ALEOS Version 4.9.4

I am successfully using persist.save() and persist.load() to save configuration data to non-volatile storage.

However, I am trying to access the same data from 2 ALEOS applications, unsuccessfully. What is the scope of the naming of the objects? Is it possible for 2 or more ALEOS applications to access the same persistent storage?

Regards,

Paul

---

<div class="post-metadata">

**Author:** ![Donald](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@Donald](https://forum.sierrawireless.com/u/Donald)\
**Post date:** [May 25, 2020, 1:49am UTC](https://forum.sierrawireless.com/t/persist-save-persist-load-between-2-applications/20401/2 "2020-05-25T01:49:07Z")

</div>

Hi @pcomb314

**persist.save(name, obj)**

Saves an object for later retrieval.  
If the saving operation cannot be performed successfully, an error is thrown. Objects saved with this function can be retrieved with #persist.load, by giving back the same name, even after a reboot.  
Parameters  
name : the name of the persisted object to save.  
obj : the object to persist.

```
#### Usage:

 persist.save ('xxx', 1357) -- Save it in the store as 'xxx'
 [...] -- reboot
 x = persist.load 'xxx' -- Retrieve it from the store
 assert(x == 1357)

```

**persist.load(name)**

Retrieve from flash an object saved with #persist.save.  
Parameter  
name : the name of the persisted object to load.  
Return value  
the object stored under that name, or nil if no such object exists.

> [@pcomb314](#):
>
> Is it possible for 2 or more ALEOS applications to access the same persistent storage?

No, it isn’t.

Please help to mark “Solution” if your question is answered.

---

<div class="post-metadata">

**Author:** ![pcomb314](https://avatars.discourse-cdn.com/v4/letter/p/e8c25b/32.png) [@pcomb314](https://forum.sierrawireless.com/u/pcomb314)\
**Post date:** [May 25, 2020, 2:43am UTC](https://forum.sierrawireless.com/t/persist-save-persist-load-between-2-applications/20401/3 "2020-05-25T02:43:04Z")

</div>

Thanks for the response.
