{ "title": "gateway.basic", "description": "Simple gateway that manage physical devices", "lang": "en", "documentation": "http://recherche.telecom-bretagne.eu/xaal/documentation/", "ref": "http://recherche.telecom-bretagne.eu/xaal/documentation/gateway.basic", "license": "Copyright Christophe Lohr Telecom Bretagne 2014 - 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": "composite.basic", "attributes": { "address_mapping": { "description": "Mapping between xAAL address and hardware address of managed devices", "unit": "", "type": { "$schema": "http://json-schema.org/schema#", "type": "array", "items": { "type": "object", "properties": { "xAAL": { "type": "string", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" }, "protocol": { "type": "string" } }, "patternProperties": { "^HWAddr$": {} }, "additionalProperties": false } } } }, "methods": { "getAttributes": { "description": "Get the list of embedded devices and the addresses mapping", "parameters": { "attribute": { "description": "List of wanted attributes", "unit": "", "direction": "in", "type": { "$schema": "http://json-schema.org/schema#", "type": "array", "items": { "enum": [ "embedded", "address_mapping" ] }, "additionalItems": false } }, "embedded": { "description": "Embeded devices", "unit": "", "direction": "out", "type": { "$schema": "http://json-schema.org/schema#", "type": "array", "items": { "type": "object", "properties": { "description": { "type": "string" }, "devType": { "type": "string", "pattern": "^[a-zA-Z][a-zA-Z0-9_-]*.[a-zA-Z][a-zA-Z0-9_-]*$" }, "address": { "type": "string", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" } }, "additionalProperties": false } } }, "address_mapping": { "description": "Mapping between xAAL address and hardware address of managed devices", "unit": "", "direction": "out", "type": { "$schema": "http://json-schema.org/schema#", "type": "array", "items": { "type": "object", "properties": { "xAAL": { "type": "string", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" }, "protocol": { "type": "string" } }, "patternProperties": { "^HWAddr$": {} }, "additionalProperties": false } } } }, "relatedAttributes": [ ] } }, "notifications": { "attributesChange": { "description": "Change about some embedded", "parameters": { "address_mapping": { "description": "Mapping between xAAL address and hardware address of managed devices", "unit": "", "type": { "$schema": "http://json-schema.org/schema#", "type": "array", "items": { "type": "object", "properties": { "xAAL": { "type": "string", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" }, "protocol": { "type": "string" } }, "patternProperties": { "^HWAddr$": {} }, "additionalProperties": false } } } } } } }