## YAML Template.
##---
$schema: http://json-schema.org/draft-04/schema#
id: "/response/ble/central/error"


type: object
required : [error]
properties:
    error :
            type : object
            required: [error_code, message]
            additionalProperties: false
            properties:
                error_code : 
                    type: integer
                    example : 0
                module_error_code :
                    type: integer
                    example : 0
                function_code :
                    type: integer
                    example : 0
                message : 
                    type: string
                    example : "ERROR MESSAGE"
                address : {$ref : "/deviceAddress"}
                service_uuid : {$ref : "/uuidOrNull"}
                characteristic_uuid : {$ref : "/uuidOrNull"}
                descriptor_uuid : {$ref : "/uuidOrNull"}