Skip to content

Commit

Permalink
bump 2.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorz914 committed Mar 9, 2022
1 parent d347980 commit 862cd84
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### NOTE!!!
## After update to 2.x.x the plugin settings (xboxLiveId) need to be updated.

## [2.2.2] - (09.03.2022)
## Changed
- MQTT Client connection process

## Fixed
- webApiControl switch state

## [2.2.0] - (27.02.2022)
## Added
- MQTT Client, publish all device data
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ class xboxTvDevice {
this.name = config.name || 'Game console';
this.host = config.host;
this.xboxLiveId = config.xboxLiveId;
this.webApiControl = config.webApiControl || false;
this.clientId = config.clientId || '5e5ead27-ed60-482d-b3fc-702b28a97404';
this.clientSecret = config.clientSecret || false;
this.userToken = config.userToken;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"displayName": "Xbox TV",
"name": "homebridge-xbox-tv",
"version": "2.2.1",
"version": "2.2.2",
"description": "Homebridge plugin (https://github.com/homebridge/homebridge) to control Xbox game consoles.",
"license": "MIT",
"author": "grzegorz914",
Expand Down
2 changes: 1 addition & 1 deletion src/mqtt.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class MQTTCLIENT extends EventEmitter {
this.isConnected = true;
this.emit('connected', 'MQTT Connected.');
} catch (error) {
this.isConnected = false;
this.emit('error', `MQTT Connect error: ${error}`);
};
};
Expand All @@ -44,7 +45,6 @@ class MQTTCLIENT extends EventEmitter {
await this.mqttClient.publish(fullTopic, message);
const emitDebug = this.mqttDebug ? this.emit('debug', `MQTT publish: ${fullTopic}: ${message}`) : false;
} catch (error) {
this.isConnected = false;
this.emit('error', `MQTT Publish error: ${error}`);
};
};
Expand Down

0 comments on commit 862cd84

Please sign in to comment.