+4
-1
@@ -106,7 +106,10 @@ endif ()
|
||||
if (WITH_HIDAPI AND BUILD_TESTING)
|
||||
add_executable (test-upscat $<TARGET_PROPERTY:upscat,SOURCES>)
|
||||
set_target_properties (test-upscat PROPERTIES COMPILE_DEFINITIONS TESTING)
|
||||
target_link_libraries (test-upscat $<TARGET_PROPERTY:upscat,LINK_LIBRARIES>)
|
||||
target_include_directories (test-upscat
|
||||
PUBLIC $<TARGET_PROPERTY:upscat,INCLUDE_DIRECTORIES>)
|
||||
target_link_libraries (test-upscat
|
||||
PUBLIC $<TARGET_PROPERTY:upscat,LINK_LIBRARIES>)
|
||||
add_test (NAME test-upscat
|
||||
COMMAND test-upscat upscat-eaton3p.bin upscat-cyberpower.bin
|
||||
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}")
|
||||
|
||||
+1
-1
@@ -104,7 +104,7 @@ due to protocol changes, although I don't really deem it very probable.
|
||||
|
||||
upscat
|
||||
~~~~~~
|
||||
_upscat_ streams the basic status of UPS devices using the USB HID protocol,
|
||||
_upscat_ streams the basic status of UPS devices that use the USB HID protocol,
|
||||
in CSV format. You'll get the power status, remaining capacity, run time,
|
||||
and load percentage. It's been verified with Eaton 3S/3P series and CyberPower
|
||||
BR1200ELCD, both working quite differently.
|
||||
|
||||
Reference in New Issue
Block a user