This commit is contained in:
TheUnrealDragon 2026-04-01 18:37:49 +05:30
commit ea1704ca69
2 changed files with 9 additions and 0 deletions

View file

@ -43,6 +43,7 @@ qt_add_qml_module(appwaterLevelSensor
SOURCES configinterface.h configinterface.cpp SOURCES configinterface.h configinterface.cpp
SOURCES udplistener.h udplistener.cpp SOURCES udplistener.h udplistener.cpp
SOURCES service.h SOURCES service.h
RESOURCES README.md
) )
target_link_libraries(appwaterLevelSensor target_link_libraries(appwaterLevelSensor
PRIVATE Qt6::Quick Qt6::Network service PRIVATE Qt6::Quick Qt6::Network service

8
README.md Normal file
View file

@ -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.