Data Stream Transport Management
UUID: 00000129-0000-1000-8000-0026BB765291
Required Characteristics
Example
The example below is automatically generated and may not be a complete example of what is required to create a working "Data Stream Transport Management" Homebridge plugin. Note
// Example Data Stream Transport Management Plugin module.exports = (api) => { api.registerAccessory('ExampleDataStreamTransportManagementPlugin', ExampleDataStreamTransportManagementAccessory); }; class ExampleDataStreamTransportManagementAccessory { constructor(log, config, api) { this.log = log; this.config = config; this.api = api; this.Service = this.api.hap.Service; this.Characteristic = this.api.hap.Characteristic; // extract name from config this.name = config.name; // create a new Data Stream Transport Management service this.service = new this.Service(this.Service.DataStreamTransportManagement); // create handlers for required characteristics this.service.getCharacteristic(this.Characteristic.Version) .on('get', this.handleVersionGet.bind(this)); } /** * Handle requests to get the current value of the "Version" characteristic */ handleVersionGet(callback) { this.log.debug('Triggered GET Version'); // set this to a valid value for Version const currentValue = 1; callback(null, currentValue); } }