Skip to content

Commit

Permalink
fixup! fix lights test
Browse files Browse the repository at this point in the history
  • Loading branch information
groupsky committed Nov 17, 2024
1 parent 3b9569f commit bb5805b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const timer = setTimeout(() => {

client.on('connect', () => {
console.log('connected, sending...')
client.subscribe('/homy/ard1/output', (err) => {
client.subscribe('/modbus/dry-switches/relays00-15/write', (err) => {
if (err) {
console.log('Error sending', err)
process.exit(1)
Expand Down Expand Up @@ -54,7 +54,7 @@ client.on('message', (topic, message) => {
// message is Buffer
if (topic === '/modbus/dry-switches/relays00-15/write') {
const msg = JSON.parse(message)
if (msg.out13 === true) {
if (msg.out8 === true) {
clearTimeout(timer)
client.end()
}
Expand Down

0 comments on commit bb5805b

Please sign in to comment.