diff --git a/examples/bluetooth/lowenergyscanner/assets/Characteristics.qml b/examples/bluetooth/lowenergyscanner/assets/Characteristics.qml index 4bfc2c0a..1f892061 100644 --- a/examples/bluetooth/lowenergyscanner/assets/Characteristics.qml +++ b/examples/bluetooth/lowenergyscanner/assets/Characteristics.qml @@ -70,7 +70,7 @@ Rectangle { Connections { target: device - onCharacteristicsUpdated: { + function onCharacteristicsUpdated() { menu.menuText = "Back" if (characteristicview.count === 0) { info.dialogText = "No characteristic found" @@ -81,7 +81,7 @@ Rectangle { } } - onDisconnected: { + function onDisconnected() { pageLoader.source = "main.qml" } } diff --git a/examples/bluetooth/lowenergyscanner/assets/Services.qml b/examples/bluetooth/lowenergyscanner/assets/Services.qml index 68d7d447..a86d9ffb 100644 --- a/examples/bluetooth/lowenergyscanner/assets/Services.qml +++ b/examples/bluetooth/lowenergyscanner/assets/Services.qml @@ -80,14 +80,14 @@ Rectangle { Connections { target: device - onServicesUpdated: { + function onServicesUpdated() { if (servicesview.count === 0) info.dialogText = "No services found" else info.visible = false; } - onDisconnected: { + function onDisconnected() { pageLoader.source = "main.qml" } }