Skip to content

Commit

Permalink
Merged testing
Browse files Browse the repository at this point in the history
  • Loading branch information
hfedcba committed Jul 30, 2019
2 parents cfd73e8 + e415f7d commit 5496af6
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 267 deletions.
3 changes: 2 additions & 1 deletion getVersion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
dir=`mktemp -d`
cat > "$dir/libhomegear-base-version.cpp" <<-'EOF'
#include "homegear-base/BaseLib.h"
#include <iostream>
int main(int argc, char** argv)
{
std::cout << BaseLib::SharedObjects::version() << std::endl;
return 0;
}
EOF
g++ -std=c++11 -o $dir/libhomegear-base-version $dir/libhomegear-base-version.cpp -lhomegear-base -lgcrypt -lgnutls -lpthread
g++ -std=c++11 -o $dir/libhomegear-base-version $dir/libhomegear-base-version.cpp -lhomegear-base -lgcrypt -lgnutls -lpthread -latomic
chmod 755 $dir/libhomegear-base-version
$dir/libhomegear-base-version
rm -Rf $dir
5 changes: 4 additions & 1 deletion src/PhilipsHue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
#include "PhilipsHueCentral.h"
#include "GD.h"

#include <iomanip>

namespace PhilipsHue
{

Expand All @@ -55,6 +57,7 @@ void PhilipsHue::dispose()
{
if(_disposed) return;
DeviceFamily::dispose();
_central.reset();
GD::interfaces.reset();
_physicalInterfaces.reset();
}
Expand Down Expand Up @@ -111,7 +114,7 @@ PVariable PhilipsHue::getPairingInfo()
field->structValue->emplace("label", std::make_shared<BaseLib::Variable>(std::string("l10n.philipshue.pairingInfo.pollingInterval")));
field->structValue->emplace("type", std::make_shared<BaseLib::Variable>(std::string("integer")));
field->structValue->emplace("default", std::make_shared<BaseLib::Variable>(5000));
familySettings->structValue->emplace("pollingIntervall", field);
familySettings->structValue->emplace("pollingInterval", field);

info->structValue->emplace("familySettings", familySettings);
//}}}
Expand Down
Loading

0 comments on commit 5496af6

Please sign in to comment.