summaryrefslogtreecommitdiffstats
path: root/app/wifi/Wifi.qml
diff options
context:
space:
mode:
Diffstat (limited to 'app/wifi/Wifi.qml')
-rw-r--r--app/wifi/Wifi.qml27
1 files changed, 26 insertions, 1 deletions
diff --git a/app/wifi/Wifi.qml b/app/wifi/Wifi.qml
index 3bf4774..f3871a6 100644
--- a/app/wifi/Wifi.qml
+++ b/app/wifi/Wifi.qml
@@ -185,7 +185,8 @@ SettingPage {
} else if (websocket.status == WebSocket.Closed) {
status_str = "Socket closed"
- //TODO: unsubscribe for events
+ console.log("Socket closed, bye.")
+
}
console.log(status_str)
@@ -207,6 +208,30 @@ SettingPage {
var parameterJson = 'None'
sendSocketMesage(verb_str, parameterJson)
+
+ verb_str = "eventunsub"
+ parameterJson = {
+ tag: 'password'
+ }
+ sendSocketMesage(verb_str, parameterJson)
+
+ verb_str = "eventdel"
+ parameterJson = {
+ tag: 'password'
+ }
+ sendSocketMesage(verb_str, parameterJson)
+
+ verb_str = "eventunsub"
+ parameterJson = {
+ tag: 'networkList'
+ }
+ sendSocketMesage(verb_str, parameterJson)
+
+ verb_str = "eventdel"
+ parameterJson = {
+ tag: 'networkList'
+ }
+
websocket.active = false
}