diff --git a/CMakeLists.txt b/CMakeLists.txt index c116d03..45891ca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,6 +43,7 @@ qt_add_qml_module(appwaterLevelSensor SOURCES configinterface.h configinterface.cpp SOURCES udplistener.h udplistener.cpp SOURCES service.h + RESOURCES README.md ) target_link_libraries(appwaterLevelSensor PRIVATE Qt6::Quick Qt6::Network service diff --git a/README.md b/README.md new file mode 100644 index 0000000..1c024c9 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# Water Level Sensor + +Builds using QtCreator, use Qt Version 6.9. +Builds for android and desktop. +On Android Creates a service from service.cpp and android/src/org/qtproject/example/appwaterLevelSensor/WaterLevelService.java +Changes in AndroidManifest.xml are important. +On Desktop just waits for values from a UDP Broadcast on local network with port 8176 and shows those values. +On Android the service does that, and creates an alert notification if the value in broadcast is less than alert threshold. \ No newline at end of file