Pārlūkot izejas kodu

mqqt topic name changed to status for feedback channel

master
Dirk Alders 2 gadus atpakaļ
vecāks
revīzija
c796d1d47a
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      powerplug.py

+ 1
- 1
powerplug.py Parādīt failu

@@ -49,7 +49,7 @@ class sispmctl(object):
49 49
                 self.send_state(output)
50 50
 
51 51
     def send_state(self, output):
52
-        topic = config.MQTT_TOPIC + "/get/" + str(output)
52
+        topic = config.MQTT_TOPIC + "/status/" + str(output)
53 53
         logger.info("Sending Powerplug status information of plug %d to mqtt %s = %s", output, topic, str(self.get_out_state(output)))
54 54
         self.__mqtt_client__.publish(topic, "true" if self.get_out_state(output) else "false")
55 55
 

Notiek ielāde…
Atcelt
Saglabāt