Protocol Information
UUID: 000000A2-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 "Protocol Information" Homebridge plugin. Note
// Example Protocol Information Plugin module.exports = (api) => { api.registerAccessory('ExampleProtocolInformationPlugin', ExampleProtocolInformationAccessory); }; class ExampleProtocolInformationAccessory { 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 Protocol Information service this.service = new this.Service(this.Service.ProtocolInformation); // 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); } }