Commit Graph
168 Commits
Author SHA1 Message Date
Vibhav Pant b4bd7ddbb8 Delete gatt_service_client.h. 2023-09-26 17:43:01 +05:30
Vibhav Pant 36c1bb4c8f Remove unneeded header. 2023-09-26 17:42:49 +05:30
Vibhav Pant 300155257f Use Adapter's SupportedSecondaryChannels to check if EA is supported 2023-09-26 17:25:00 +05:30
Vibhav Pant e754f3bee4 Unify all code for generating random data into functions in utils 2023-09-13 18:53:36 +05:30
Vibhav Pant f4c487188a Rewrite ActiveConnectionStateReason as a struct with an enum Value 2023-09-13 17:43:25 +05:30
Vibhav Pant 42be2b343d Move all common TCP sockets code to tcp_server_socket.h. 2023-09-13 16:47:49 +05:30
Vibhav Pant e61a3aa677 Add support for GATT clients. 2023-09-13 14:32:44 +05:30
Vibhav Pant 0231dc656a BluezObjectManager: Mark the destructor as virtual 2023-09-13 14:23:11 +05:30
Vibhav Pant 4bdc46e257 Make all calls to WriteValue synchronous for now. 2023-09-11 18:41:49 +05:30
Vibhav Pant d7abb17751 Share one notification session for all calls between Start/StopNotify 2023-09-11 18:38:48 +05:30
Vibhav Pant 2abd9f4d83 Flags: Support write-without-response when writing is enabled. 2023-09-11 18:11:45 +05:30
Vibhav Pant 18e471ac37 Add gatt_service_client.h 2023-09-11 17:59:20 +05:30
Vibhav Pant c4bd3b1bcb Add a client variant DBus description for GattCharacteristic1.
This file contains additional methods that our Characteristic server
interfaces don't support yet.
2023-09-11 17:54:06 +05:30
Vibhav Pant fa81c030ad Rename class GattService to GattServiceServer 2023-09-11 17:53:44 +05:30
Vibhav Pant 7f732a52e7 Rename bluez_gatt_service.{cc,h} to bluez_gatt_service_server 2023-09-11 17:46:42 +05:30
Vibhav Pant e40faf5ddd Rename GattCharacteristic to GattCharacteristicServer. 2023-09-11 17:43:50 +05:30
Vibhav Pant bcbcaa54a2 Avoid raising an exception in case of an invalid text attribute 2023-09-11 17:39:03 +05:30
Vibhav Pant 6e524684a6 Rename bluez_gatt_characteristic.{cc,h} to bluez_gatt_characteristic_server 2023-09-11 17:37:59 +05:30
Vibhav Pant 5574c3baf0 Add a constants namespace to network_manager.h 2023-09-11 15:45:52 +05:30
Vibhav Pant 0d32fb37fb Move all NetworkManager D-Bus code to its own namespace. 2023-09-11 13:13:28 +05:30
Vibhav Pant 8c762ea9ab Reenable Start/StopWifiDirect 2023-09-10 00:14:52 +05:30
Vibhav Pant 70f732239e Shutdown wifi server sockets before closing them. 2023-09-10 00:14:18 +05:30
Vibhav Pant 71ba41c14d StartWifiHotspot: Disable PMF explicitly for the hotspot. 2023-09-10 00:11:10 +05:30
Vibhav Pant 358d01f350 ConntectToService: Use ConnectedToWifi instead of WifiHotspotActive 2023-09-10 00:10:34 +05:30
Vibhav Pant 4267ec43f3 Don't provide auth-alg for WPA connections. 2023-09-09 23:46:10 +05:30
Vibhav Pant 936b332aba Minor refactor 2023-09-09 23:12:30 +05:30
Vibhav Pant 799a8e9404 Register: Fix bug with profile options not getting correctly set 2023-09-09 23:11:38 +05:30
Vibhav Pant c7a5bdcebb Destroy DeviceWatcher _after_ stopping discovery.
This lets DeviceWatcher receive InterfacesRemoved signals so that we
can potentially get rid of lost devices.
2023-09-09 21:58:18 +05:30
Vibhav Pant f489a179a6 Remove org.freedesktop.LogControl implementation.
The final application is in charge of logging, not the library.
2023-09-09 21:42:30 +05:30
Vibhav Pant bc4c1e76c9 Use shared_ptrs for dbus connections for top-level classes. 2023-09-09 21:41:37 +05:30
Vibhav Pant 567ee6741b Minor refactor 2023-09-09 13:44:45 +05:30
Vibhav Pant d1659d2231 Guard discovery callbacks with a lock. 2023-09-09 13:44:27 +05:30
Vibhav Pant 386d27d646 ShutDown: Remove extraneous logs 2023-09-09 13:02:15 +05:30
Vibhav Pant a8a2964edd StartLEDiscovery: Use "auto" as the discovery filter transport. 2023-09-09 13:01:22 +05:30
Vibhav Pant a97244ad02 Advertise as a peripheral, return the correct value for ServiceUUIDs 2023-09-09 13:00:51 +05:30
Vibhav Pant d47788392e Add DeviceWatcher for adding/removing devices. 2023-09-09 13:00:28 +05:30
Vibhav Pant 0aee88a9ca Call ConnectToProfile synchronously. 2023-09-09 12:55:27 +05:30
Vibhav Pant 498e77e026 Make ConnectProfile a sync method. 2023-09-09 12:55:05 +05:30
Vibhav Pant 54d31abedf Add an initial BLE v2 implementation. 2023-09-08 16:53:49 +05:30
Vibhav Pant 2425473981 Shutdown: return after shutting down executor. 2023-09-08 16:49:35 +05:30
Vibhav Pant 324146d075 Remove unneeded functions, add UuidFromString. 2023-09-08 16:49:08 +05:30
Vibhav Pant 2930c9319a Add additional functions. 2023-09-08 16:48:58 +05:30
Vibhav Pant c62837a546 Set discovery filter to "bredr" before starting discovery. 2023-09-08 16:48:28 +05:30
Vibhav Pant e295e2eca2 Allow marking/unmarking devices as lost. 2023-09-08 16:48:00 +05:30
Vibhav Pant d0c6f5fc26 Add an ObjectManager instance at / for both system and session bus connections. 2023-09-06 23:12:21 +05:30
Vibhav Pant 6b037b1b81 Refactor 2023-09-06 23:08:06 +05:30
Vibhav Pant 40e57a07ef Don't request a name for the default bus connection. 2023-09-06 19:53:03 +05:30
Vibhav Pant 1837e7cd38 BluetoothDevice: Inherit from ble_v2::BlePeripheral as well. 2023-09-05 20:16:40 +05:30
Vibhav Pant 608d725b7f Construct BluetoothClassicMedium correctly. 2023-09-05 20:01:13 +05:30
Vibhav Pant 4042687b8d Add support for sharing DiscoveryCallbacks across BluetoothDevices. 2023-09-05 20:00:25 +05:30