Skip to content

Commit

Permalink
Merge pull request #3 from dracoqcca/master
Browse files Browse the repository at this point in the history
still space in name
  • Loading branch information
sktaylortrash authored Sep 11, 2019
2 parents f881170 + 63f4dff commit 07996f4
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 07996f4

Please sign in to comment.