
Some applications require to store data i.e. for configuring an attached device, print messages to a screen or to recall ip adresses to connect to. The simplest way to store data within a BASIC script is to do a hardcoded line such as ' let ip$ = "192.168.0.3" '. If there is more data to store, or data needs to be changed without modifying the script, there other ways:
These set of commands allow to store a number of data within a BASIC script. This is particular usefull if i.e. config data needs to be send to device or messages need to printed to a display. Data stored using this method are more or less 'hardcoded' and always come with the script itself (it depends on the application whether or not this is of advantage or not).
See DATA - READ - RESTORE (
more) for details on those commands.
The number of data which can be stored using the data command can be changed. By default it is 1kByte. See MEMCFG (
more) on how the modify memory allocation.
These set of commands allow to store a number of data permanently in the Avisaro device. This is particular usefull for configuration data (i.e. IP adress to connect to) or temporary user data such as a history of events.
This storage are can be used also to store data to be send to a connected device for configuration purpose. A little 'helper' script or a special function (... if file exist ... copy content to this store area ...) can be used to preload this storage area. Once loaded, the script can access the data within this area.
This storage area is non-volatile. Its size is 4kByte - so quite some data fit into this area. Unlike the other method, this area is fixed in size.
See SAVE (
more) - LOAD (
more) for details on those commands.
Last but not least, data can be stored on SD card - if a memory card slot is available. Storage space is almost unlimited, however data are only available if a SD card is inserted. See (
here) for details.