From b5a3374c8e4c8a7734d471fa097d5b935752da52 Mon Sep 17 00:00:00 2001 From: William C Bonner <wimbonner@hotmail.com> Date: Sun, 8 Dec 2024 10:40:15 -0800 Subject: [PATCH] clean up comments --- goveebttemplogger.cpp | 823 +----------------------------------------- 1 file changed, 16 insertions(+), 807 deletions(-) diff --git a/goveebttemplogger.cpp b/goveebttemplogger.cpp index f5f8df7..e25d3bc 100644 --- a/goveebttemplogger.cpp +++ b/goveebttemplogger.cpp @@ -3912,6 +3912,22 @@ void bluez_device_disconnect(DBusConnection* dbus_conn, const char* adapter_path else std::cerr << ssOutput.str(); } +/* +https://www.mankier.com/5/org.bluez.Device +https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/org.bluez.GattCharacteristic.rst +https://github.com/Heckie75/govee-h5075-thermo-hygrometer +https://blog.linumiz.com/archives/16279 BlueZ Part 1: Reviving Bluetooth with BlueZ and Zephyr RTOS +https://blog.linumiz.com/archives/16427 BlueZ Part 2: Understanding DBUS – Basic type system – (1) +https://blog.linumiz.com/archives/16468 BlueZ Part 3: Understanding DBUS – Container type system – (2) +https://blog.linumiz.com/archives/16511 BlueZ Part 4: Understanding DBUS – Type system summary – (3) +https://blog.linumiz.com/archives/16537 BlueZ Part 5: Understanding DBUS – Get property – (4) +https://blog.linumiz.com/archives/16556 BlueZ Part 6: Understanding DBUS – Get and Set Property – (5) +https://blog.linumiz.com/archives/16564 BlueZ Part 7: Understanding DBUS – Get and GetAll properties – (6) +https://blog.linumiz.com/archives/16576 BlueZ Part 8: Understanding DBUS – PropertiesChanged – (7) +https://blog.linumiz.com/archives/16584 BlueZ Part 9: Understanding DBUS – Introspectable – (8) + +wim@WimPi5:~ $ dbus-send --system --dest=org.bluez --print-reply / org.freedesktop.DBus.ObjectManager.GetManagedObjects +*/ bool bluez_device_download(DBusConnection* dbus_conn, const char* adapter_path, const bdaddr_t& dbusBTAddress) { bool bDownloaded(false); @@ -4408,813 +4424,6 @@ time_t ConnectAndDownload(DBusConnection* dbus_conn, const char* adapter_path, c ssOutput << std::endl; //bContinueProcessing = false; // TODO: Examine reply -/* -https://www.mankier.com/5/org.bluez.Device -https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/org.bluez.GattCharacteristic.rst -https://github.com/Heckie75/govee-h5075-thermo-hygrometer -https://blog.linumiz.com/archives/16279 BlueZ Part 1: Reviving Bluetooth with BlueZ and Zephyr RTOS -https://blog.linumiz.com/archives/16427 BlueZ Part 2: Understanding DBUS – Basic type system – (1) -https://blog.linumiz.com/archives/16468 BlueZ Part 3: Understanding DBUS – Container type system – (2) -https://blog.linumiz.com/archives/16511 BlueZ Part 4: Understanding DBUS – Type system summary – (3) -https://blog.linumiz.com/archives/16537 BlueZ Part 5: Understanding DBUS – Get property – (4) -https://blog.linumiz.com/archives/16556 BlueZ Part 6: Understanding DBUS – Get and Set Property – (5) -https://blog.linumiz.com/archives/16564 BlueZ Part 7: Understanding DBUS – Get and GetAll properties – (6) -https://blog.linumiz.com/archives/16576 BlueZ Part 8: Understanding DBUS – PropertiesChanged – (7) -https://blog.linumiz.com/archives/16584 BlueZ Part 9: Understanding DBUS – Introspectable – (8) - -wim@WimPi5:~ $ dbus-send --system --dest=org.bluez --print-reply / org.freedesktop.DBus.ObjectManager.GetManagedObjects -method return time=1732335448.277197 sender=:1.5 -> destination=:1.1561 serial=155158 reply_serial=2 - - dict entry( - object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D" - array [ - dict entry( - string "org.freedesktop.DBus.Introspectable" - array [ - ] - ) - dict entry( - string "org.bluez.Device1" - array [ - dict entry( - string "Address" - variant string "A4:C1:38:DC:CC:3D" - ) - dict entry( - string "AddressType" - variant string "public" - ) - dict entry( - string "Name" - variant string "GVH5174_CC3D" - ) - dict entry( - string "Alias" - variant string "GVH5174_CC3D" - ) - dict entry( - string "Paired" - variant boolean false - ) - dict entry( - string "Bonded" - variant boolean false - ) - dict entry( - string "Trusted" - variant boolean false - ) - dict entry( - string "Blocked" - variant boolean false - ) - dict entry( - string "LegacyPairing" - variant boolean false - ) - dict entry( - string "RSSI" - variant int16 -55 - ) - dict entry( - string "Connected" - variant boolean false - ) - dict entry( - string "UUIDs" - variant array [ - string "00001800-0000-1000-8000-00805f9b34fb" - string "00001801-0000-1000-8000-00805f9b34fb" - string "0000180a-0000-1000-8000-00805f9b34fb" - string "00010203-0405-0607-0809-0a0b0c0d1912" - string "494e5445-4c4c-495f-524f-434b535f4857" - ] - ) - dict entry( - string "Modalias" - variant string "usb:v248Ap8266d0001" - ) - dict entry( - string "Adapter" - variant object path "/org/bluez/hci0" - ) - dict entry( - string "ManufacturerData" - variant array [ - dict entry( - uint16 1 - variant array of bytes [ - 01 01 02 c1 2f 0b - ] - ) - dict entry( - uint16 76 - variant array of bytes [ - 02 15 49 4e 54 45 4c 4c 49 5f 52 4f 43 4b - 53 5f 48 57 50 75 f2 ff c2 - ] - ) - ] - ) - dict entry( - string "ServicesResolved" - variant boolean false - ) - ] - ) - dict entry( - string "org.freedesktop.DBus.Properties" - array [ - ] - ) - ] - ) - dict entry( - object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service001c" - array [ - dict entry( - string "org.freedesktop.DBus.Introspectable" - array [ - ] - ) - dict entry( - string "org.bluez.GattService1" - array [ - dict entry( - string "UUID" - variant string "00010203-0405-0607-0809-0a0b0c0d1912" - ) - dict entry( - string "Device" - variant object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D" - ) - dict entry( - string "Primary" - variant boolean true - ) - dict entry( - string "Includes" - variant array [ - ] - ) - ] - ) - dict entry( - string "org.freedesktop.DBus.Properties" - array [ - ] - ) - ] - ) - dict entry( - object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service001c/char001d" - array [ - dict entry( - string "org.freedesktop.DBus.Introspectable" - array [ - ] - ) - dict entry( - string "org.bluez.GattCharacteristic1" - array [ - dict entry( - string "UUID" - variant string "00010203-0405-0607-0809-0a0b0c0d2b12" - ) - dict entry( - string "Service" - variant object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service001c" - ) - dict entry( - string "Value" - variant array [ - ] - ) - dict entry( - string "Flags" - variant array [ - string "read" - string "write-without-response" - ] - ) - dict entry( - string "WriteAcquired" - variant boolean false - ) - ] - ) - dict entry( - string "org.freedesktop.DBus.Properties" - array [ - ] - ) - ] - ) - dict entry( - object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service001c/char001d/desc001f" - array [ - dict entry( - string "org.freedesktop.DBus.Introspectable" - array [ - ] - ) - dict entry( - string "org.bluez.GattDescriptor1" - array [ - dict entry( - string "UUID" - variant string "00002901-0000-1000-8000-00805f9b34fb" - ) - dict entry( - string "Characteristic" - variant object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service001c/char001d" - ) - dict entry( - string "Value" - variant array [ - ] - ) - ] - ) - dict entry( - string "org.freedesktop.DBus.Properties" - array [ - ] - ) - ] - ) - dict entry( - object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service000f" - array [ - dict entry( - string "org.freedesktop.DBus.Introspectable" - array [ - ] - ) - dict entry( - string "org.bluez.GattService1" - array [ - dict entry( - string "UUID" - variant string "494e5445-4c4c-495f-524f-434b535f4857" - ) - dict entry( - string "Device" - variant object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D" - ) - dict entry( - string "Primary" - variant boolean true - ) - dict entry( - string "Includes" - variant array [ - ] - ) - ] - ) - dict entry( - string "org.freedesktop.DBus.Properties" - array [ - ] - ) - ] - ) - dict entry( - object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service000f/char0018" - array [ - dict entry( - string "org.freedesktop.DBus.Introspectable" - array [ - ] - ) - dict entry( - string "org.bluez.GattCharacteristic1" - array [ - dict entry( - string "UUID" - variant string "494e5445-4c4c-495f-524f-434b535f2013" - ) - dict entry( - string "Service" - variant object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service000f" - ) - dict entry( - string "Value" - variant array [ - ] - ) - dict entry( - string "Notifying" - variant boolean false - ) - dict entry( - string "Flags" - variant array [ - string "read" - string "notify" - ] - ) - dict entry( - string "NotifyAcquired" - variant boolean false - ) - ] - ) - dict entry( - string "org.freedesktop.DBus.Properties" - array [ - ] - ) - ] - ) - dict entry( - object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service000f/char0018/desc001b" - array [ - dict entry( - string "org.freedesktop.DBus.Introspectable" - array [ - ] - ) - dict entry( - string "org.bluez.GattDescriptor1" - array [ - dict entry( - string "UUID" - variant string "00002901-0000-1000-8000-00805f9b34fb" - ) - dict entry( - string "Characteristic" - variant object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service000f/char0018" - ) - dict entry( - string "Value" - variant array [ - ] - ) - ] - ) - dict entry( - string "org.freedesktop.DBus.Properties" - array [ - ] - ) - ] - ) - dict entry( - object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service000f/char0018/desc001a" - array [ - dict entry( - string "org.freedesktop.DBus.Introspectable" - array [ - ] - ) - dict entry( - string "org.bluez.GattDescriptor1" - array [ - dict entry( - string "UUID" - variant string "00002902-0000-1000-8000-00805f9b34fb" - ) - dict entry( - string "Characteristic" - variant object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service000f/char0018" - ) - dict entry( - string "Value" - variant array [ - ] - ) - ] - ) - dict entry( - string "org.freedesktop.DBus.Properties" - array [ - ] - ) - ] - ) - dict entry( - object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service000f/char0014" - array [ - dict entry( - string "org.freedesktop.DBus.Introspectable" - array [ - ] - ) - dict entry( - string "org.bluez.GattCharacteristic1" - array [ - dict entry( - string "UUID" - variant string "494e5445-4c4c-495f-524f-434b535f2012" - ) - dict entry( - string "Service" - variant object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service000f" - ) - dict entry( - string "Value" - variant array [ - ] - ) - dict entry( - string "Notifying" - variant boolean false - ) - dict entry( - string "Flags" - variant array [ - string "read" - string "write" - string "notify" - ] - ) - dict entry( - string "NotifyAcquired" - variant boolean false - ) - ] - ) - dict entry( - string "org.freedesktop.DBus.Properties" - array [ - ] - ) - ] - ) - dict entry( - object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service000f/char0014/desc0017" - array [ - dict entry( - string "org.freedesktop.DBus.Introspectable" - array [ - ] - ) - dict entry( - string "org.bluez.GattDescriptor1" - array [ - dict entry( - string "UUID" - variant string "00002901-0000-1000-8000-00805f9b34fb" - ) - dict entry( - string "Characteristic" - variant object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service000f/char0014" - ) - dict entry( - string "Value" - variant array [ - ] - ) - ] - ) - dict entry( - string "org.freedesktop.DBus.Properties" - array [ - ] - ) - ] - ) - dict entry( - object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service000f/char0014/desc0016" - array [ - dict entry( - string "org.freedesktop.DBus.Introspectable" - array [ - ] - ) - dict entry( - string "org.bluez.GattDescriptor1" - array [ - dict entry( - string "UUID" - variant string "00002902-0000-1000-8000-00805f9b34fb" - ) - dict entry( - string "Characteristic" - variant object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service000f/char0014" - ) - dict entry( - string "Value" - variant array [ - ] - ) - ] - ) - dict entry( - string "org.freedesktop.DBus.Properties" - array [ - ] - ) - ] - ) - dict entry( - object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service000f/char0010" - array [ - dict entry( - string "org.freedesktop.DBus.Introspectable" - array [ - ] - ) - dict entry( - string "org.bluez.GattCharacteristic1" - array [ - dict entry( - string "UUID" - variant string "494e5445-4c4c-495f-524f-434b535f2011" - ) - dict entry( - string "Service" - variant object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service000f" - ) - dict entry( - string "Value" - variant array [ - ] - ) - dict entry( - string "Notifying" - variant boolean false - ) - dict entry( - string "Flags" - variant array [ - string "read" - string "write" - string "notify" - ] - ) - dict entry( - string "NotifyAcquired" - variant boolean false - ) - ] - ) - dict entry( - string "org.freedesktop.DBus.Properties" - array [ - ] - ) - ] - ) - dict entry( - object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service000f/char0010/desc0013" - array [ - dict entry( - string "org.freedesktop.DBus.Introspectable" - array [ - ] - ) - dict entry( - string "org.bluez.GattDescriptor1" - array [ - dict entry( - string "UUID" - variant string "00002901-0000-1000-8000-00805f9b34fb" - ) - dict entry( - string "Characteristic" - variant object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service000f/char0010" - ) - dict entry( - string "Value" - variant array [ - ] - ) - ] - ) - dict entry( - string "org.freedesktop.DBus.Properties" - array [ - ] - ) - ] - ) - dict entry( - object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service000f/char0010/desc0012" - array [ - dict entry( - string "org.freedesktop.DBus.Introspectable" - array [ - ] - ) - dict entry( - string "org.bluez.GattDescriptor1" - array [ - dict entry( - string "UUID" - variant string "00002902-0000-1000-8000-00805f9b34fb" - ) - dict entry( - string "Characteristic" - variant object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service000f/char0010" - ) - dict entry( - string "Value" - variant array [ - ] - ) - ] - ) - dict entry( - string "org.freedesktop.DBus.Properties" - array [ - ] - ) - ] - ) - dict entry( - object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service000c" - array [ - dict entry( - string "org.freedesktop.DBus.Introspectable" - array [ - ] - ) - dict entry( - string "org.bluez.GattService1" - array [ - dict entry( - string "UUID" - variant string "0000180a-0000-1000-8000-00805f9b34fb" - ) - dict entry( - string "Device" - variant object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D" - ) - dict entry( - string "Primary" - variant boolean true - ) - dict entry( - string "Includes" - variant array [ - ] - ) - ] - ) - dict entry( - string "org.freedesktop.DBus.Properties" - array [ - ] - ) - ] - ) - dict entry( - object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service000c/char000d" - array [ - dict entry( - string "org.freedesktop.DBus.Introspectable" - array [ - ] - ) - dict entry( - string "org.bluez.GattCharacteristic1" - array [ - dict entry( - string "UUID" - variant string "00002a50-0000-1000-8000-00805f9b34fb" - ) - dict entry( - string "Service" - variant object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service000c" - ) - dict entry( - string "Value" - variant array [ - ] - ) - dict entry( - string "Flags" - variant array [ - string "read" - ] - ) - ] - ) - dict entry( - string "org.freedesktop.DBus.Properties" - array [ - ] - ) - ] - ) - dict entry( - object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service0008" - array [ - dict entry( - string "org.freedesktop.DBus.Introspectable" - array [ - ] - ) - dict entry( - string "org.bluez.GattService1" - array [ - dict entry( - string "UUID" - variant string "00001801-0000-1000-8000-00805f9b34fb" - ) - dict entry( - string "Device" - variant object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D" - ) - dict entry( - string "Primary" - variant boolean true - ) - dict entry( - string "Includes" - variant array [ - ] - ) - ] - ) - dict entry( - string "org.freedesktop.DBus.Properties" - array [ - ] - ) - ] - ) - dict entry( - object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service0008/char0009" - array [ - dict entry( - string "org.freedesktop.DBus.Introspectable" - array [ - ] - ) - dict entry( - string "org.bluez.GattCharacteristic1" - array [ - dict entry( - string "UUID" - variant string "00002a05-0000-1000-8000-00805f9b34fb" - ) - dict entry( - string "Service" - variant object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service0008" - ) - dict entry( - string "Value" - variant array [ - ] - ) - dict entry( - string "Notifying" - variant boolean false - ) - dict entry( - string "Flags" - variant array [ - string "indicate" - ] - ) - ] - ) - dict entry( - string "org.freedesktop.DBus.Properties" - array [ - ] - ) - ] - ) - dict entry( - object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service0008/char0009/desc000b" - array [ - dict entry( - string "org.freedesktop.DBus.Introspectable" - array [ - ] - ) - dict entry( - string "org.bluez.GattDescriptor1" - array [ - dict entry( - string "UUID" - variant string "00002902-0000-1000-8000-00805f9b34fb" - ) - dict entry( - string "Characteristic" - variant object path "/org/bluez/hci0/dev_A4_C1_38_DC_CC_3D/service0008/char0009" - ) - dict entry( - string "Value" - variant array [ - ] - ) - ] - ) - dict entry( - string "org.freedesktop.DBus.Properties" - array [ - ] - ) - ] - ) - -*/ dbus_message_unref(dbus_reply); if (bContinueProcessing) {