obniz
Version:
obniz sdk for javascript
24 lines (21 loc) • 728 B
YAML
## YAML Template.
##---
$schema: http://json-schema.org/draft-04/schema#
id: "/request/ble/central/descriptor_write"
related : "/response/ble/central/descriptor_write"
type: object
required : [write_descriptor]
properties:
write_descriptor :
type : object
required: [address, service_uuid, characteristic_uuid, descriptor_uuid,data]
additionalProperties: false
properties:
address : {$ref : "/deviceAddress"}
service_uuid : {$ref : "/uuid"}
characteristic_uuid : {$ref : "/uuid"}
descriptor_uuid : {$ref : "/uuid"}
data : {$ref : "/dataArray"}
needResponse :
type : boolean
default : true