File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ function start () {
18
18
log . info ( pkg . name + ' ' + pkg . version + ' starting' )
19
19
20
20
const mqttOptions = { will : {
21
- topic : config . name + '/connected' ,
21
+ topic : config . instance + '/connected' ,
22
22
message : 0 ,
23
23
qos : 0
24
24
} }
@@ -110,7 +110,7 @@ function publishConnectionStatus (status) {
110
110
}
111
111
currentStatus = status
112
112
// 1 for mqtt online two for connected to hardware (should this be 2 after first image?)
113
- client . publish ( config . name + '/connected' , status , {
113
+ client . publish ( config . instance + '/connected' , status , {
114
114
qos : 0 ,
115
115
retain : true
116
116
} )
@@ -124,7 +124,7 @@ function publishConnectionStatus (status) {
124
124
* @return {String } MQTT Topic name
125
125
*/
126
126
function getTopicFor ( device , type ) {
127
- return [ config . name , device , type ] . join ( '/' )
127
+ return [ config . instance , device , type ] . join ( '/' )
128
128
}
129
129
130
130
/**
You can’t perform that action at this time.
0 commit comments