Skip to content

Commit

Permalink
Fix light bulb sample
Browse files Browse the repository at this point in the history
  • Loading branch information
mhabedinpour committed Nov 14, 2017
1 parent dd04816 commit 76e8278
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "has-node",
"version": "0.3.0",
"version": "0.3.1",
"description": "Homekit Accessory Server",
"main": "app.js",
"scripts": {
Expand Down
9 changes: 1 addition & 8 deletions samples/lightbulb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,12 @@

import * as HAS from '../';

let config = new HAS.Config('NodeJS Light2', '42:E6:B6:63:BC:2C', HAS.categories.lightBulb, __dirname + '/light.json', 8093, '200-20-200');
let config = new HAS.Config('NodeJS Light', '42:E6:B6:63:BC:2C', HAS.categories.lightBulb, __dirname + '/light.json', 8093, '200-20-200');

let server = new HAS.Server(config);

let light = new HAS.Accessory(1);


console.log(config.getHASID('salam'));
console.log(config.getHASID('salam2'));
console.log(config.resetHASID('salam'));
console.log(config.getHASID('salam'));


let lightIdentify = HAS.predefined.Identify(1, undefined, (value, callback) => {
console.log('Light Identify', value);
callback(HAS.statusCodes.OK);
Expand Down

0 comments on commit 76e8278

Please sign in to comment.