Skip to content

Commit

Permalink
fix publish web api data over mqtt
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorz914 committed Sep 27, 2024
1 parent 92cfa70 commit 17899a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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": "3.1.14",
"version": "3.1.15",
"description": "Homebridge plugin to control Xbox game consoles.",
"license": "MIT",
"author": "grzegorz914",
Expand Down
4 changes: 2 additions & 2 deletions src/xboxdevice.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ class XboxDevice extends EventEmitter {
this.emit('error', error);
})
.on('restFul', (path, data) => {
this.emit('restFul', path, data)
const restFul = this.restFulConnected ? this.restFul1.update(path, data) : false;
})
.on('mqtt', (topic, message) => {
this.emit('mqtt', topic, message)
const mqtt = this.mqttConnected ? this.mqtt1.emit('publish', topic, message) : false;
});

//check authorization
Expand Down

0 comments on commit 17899a5

Please sign in to comment.