Skip to content

Commit

Permalink
Update MQTTGenerator.php
Browse files Browse the repository at this point in the history
  • Loading branch information
dracoqcca authored Sep 11, 2019
1 parent 3dacc2e commit 63f4dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MQTTGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@
if ($mqtt->connect(true, NULL, $MQTTusername, $MQTTpassword)) {
$file_handle = fopen('mqtt_sub.py', 'a') or die('Error opening file.');
$data1 = "\n### ".$scene['name']." Begin\n";
$data2 = "client.message_callback_add('".$MQTT_prefix."/".$SceneName."/".$scene['sid']."/switch', on_message_".$scene['name'].")\n";
$data2 = "client.message_callback_add('".$MQTT_prefix."/".$SceneName."/".$scene['sid']."/switch', on_message_".$SceneName.")\n";
fwrite($file_handle, $data1);
fwrite($file_handle, $data2);
fclose($file_handle);
Expand Down

0 comments on commit 63f4dff

Please sign in to comment.