Skip to content

Commit

Permalink
Connect FIX
Browse files Browse the repository at this point in the history
SSL connection fix
  • Loading branch information
sergejey committed Sep 21, 2018
1 parent 3d02897 commit cf325df
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/general.class.php
Expand Up @@ -576,7 +576,7 @@ function dprint($data = 0, $stop = 1) {
} else {
echo date('Y-m-d H:i:s');
}
echo "</pre>";
echo "</pre><hr/>";
echo str_repeat(' ',4096);
flush();flush();

Expand Down
4 changes: 2 additions & 2 deletions modules/connect/connect.class.php
Expand Up @@ -384,7 +384,7 @@ function sendAllDevices() {
}
}
$fields['devices_data']=json_encode($devices);
DebMes("Posting all devices to $url",'device_sync');
//DebMes("Posting all devices to $url",'device_sync');
//DebMes($fields['devices_data'],'device_sync');
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL, $url);
Expand Down Expand Up @@ -422,7 +422,7 @@ function sendDeviceProperty($property,$value) {
}
foreach($fields as $k=>$v) { $fields_string .= $k.'='.$v.'&'; }
rtrim($fields_string, '&');
DebMes("Posting $property = $value to $url",'device_sync');
//DebMes("Posting $property = $value to $url",'device_sync');
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL, $url);
curl_setopt($ch,CURLOPT_POST, count($fields));
Expand Down
2 changes: 1 addition & 1 deletion scripts/cycle_connect.php
Expand Up @@ -64,7 +64,7 @@
$ca_file=NULL;
} else {
$port = '8883';
$ca_file= '/etc/ssl/certs';
$ca_file= dirname(__FILE__).'/../modules/connect/cert.pem';
}


Expand Down

0 comments on commit cf325df

Please sign in to comment.