{ "title": "cache.basic", "description": "Simple cache that can be queried about attributes of devices", "lang": "en", "documentation": "http://recherche.imt-atlantique.fr/xaal/documentation/", "ref": "http://recherche.imt-atlantique.fr/xaal/documentation/cache.basic", "license": "Copyright Christophe Lohr IMT Atlantique 2019 - Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.", "extends": "basic.basic", "methods": { "get_device_attributes": { "description": "Get attributes of a device in cache with last values and dates", "in": { "device":"device_t", "attributes":"attributes_t" }, "out": { "device":"device_t", "attributes":"cache_t" }, "related_attributes": [ ] } }, "datamodel": { "device_t": { "description": "Address of a device", "type": "data = #6.37(bstr .size 16)" }, "attributes_t": { "description": "List of attributes names", "type": "data = [ * (tstr .regexp \"[a-zA-Z][a-zA-Z0-9_-]*\") ]" }, "cache_t": { "description": "List of attributes in cache, with name, last value, and date", "type": "data = [ * { name:(tstr .regexp \"[a-zA-Z][a-zA-Z0-9_-]*\"), value:any, date:uint } ]" } } }