Skip to content

Commit

Permalink
remove extra files
Browse files Browse the repository at this point in the history
add_compile_definitions(_BLUEZ_HCI_)
  • Loading branch information
William C Bonner committed Oct 10, 2024
1 parent 23bf801 commit 1b4bd57
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 67 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ if (POLICY CMP0115)
cmake_policy(SET CMP0115 NEW)
endif()

add_compile_definitions(_BLUEZ_HCI_)

project (GoveeBTTempLogger
VERSION 3.20241008.0
VERSION 3.20241010.0
DESCRIPTION "Listen and log Govee Thermometer Bluetooth Low Energy Advertisments via BlueZ and DBus"
HOMEPAGE_URL https://github.com/wcbonner/GoveeBTTempLogger
)
Expand All @@ -37,15 +39,14 @@ pkg_check_modules( dbus REQUIRED dbus-1 )
add_executable (goveebttemplogger
goveebttemplogger.cpp
goveebttemplogger-version.h
goveebttemplogger-hci.cpp
goveebttemplogger-hci.h
att-types.h
uuid.c
uuid.h
wimiso8601.cpp
wimiso8601.h
)


target_link_libraries(goveebttemplogger
-lbluetooth
-lstdc++fs
Expand Down
3 changes: 0 additions & 3 deletions GoveeBTTempLogger.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
<ImportGroup Label="PropertySheets" />
<PropertyGroup Label="UserMacros" />
<ItemGroup>
<ClCompile Include="goveebttemplogger-hci.cpp" />
<ClCompile Include="goveebttemplogger.cpp" />
<ClCompile Include="gvh-organizelogs.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">true</ExcludedFromBuild>
Expand Down Expand Up @@ -118,8 +117,6 @@
</ItemGroup>
<ItemGroup>
<ClInclude Include="att-types.h" />
<ClInclude Include="goveebttemplogger-hci.h" />
<ClInclude Include="goveebttemplogger.h" />
<ClInclude Include="uuid.h" />
<ClInclude Include="wimiso8601.h" />
</ItemGroup>
Expand Down
45 changes: 0 additions & 45 deletions goveebttemplogger-hci.cpp

This file was deleted.

10 changes: 0 additions & 10 deletions goveebttemplogger-hci.h

This file was deleted.

8 changes: 4 additions & 4 deletions goveebttemplogger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@
// https://www.argenox.com/library/bluetooth-low-energy/using-raspberry-pi-ble/
//

//#define _BLUEZ_HCI_

#include <algorithm>
#include <cfloat>
#include <climits>
Expand Down Expand Up @@ -4527,10 +4525,12 @@ static void usage(int argc, char **argv)
std::cout << " -b | --battery graph Draw the battery status on SVG graphs. 1:daily, 2:weekly, 4:monthly, 8:yearly" << std::endl;
std::cout << " -x | --minmax graph Draw the minimum and maximum temperature and humidity status on SVG graphs. 1:daily, 2:weekly, 4:monthly, 8:yearly" << std::endl;
std::cout << " -d | --download Periodically attempt to connect and download stored data" << std::endl;
std::cout << " -p | --passive Bluetooth LE Passive Scanning" << std::endl;
std::cout << " -n | --no-bluetooth Monitor Logging Directory and process logs without Bluetooth Scanning" << std::endl;
std::cout << " -H | --HCI Prefer deprecated BlueZ HCI interface instead of DBus" << std::endl;
std::cout << " -M | --monitor Monitor Logging Directory" << std::endl;
#ifdef _BLUEZ_HCI_
std::cout << " -H | --HCI Prefer deprecated BlueZ HCI interface instead of DBus" << std::endl;
std::cout << " -p | --passive Bluetooth LE Passive Scanning" << std::endl;
#endif // _BLUEZ_HCI_
std::cout << std::endl;
}
static const char short_options[] = "hl:t:v:m:o:C:a:f:s:i:T:cb:x:dpnHM";
Expand Down
2 changes: 0 additions & 2 deletions goveebttemplogger.h

This file was deleted.

0 comments on commit 1b4bd57

Please sign in to comment.