Commit Graph
179 Commits
Author SHA1 Message Date
kidfromjupiter e2256ca83d endpoints advertised on bluetooth are immediately detected now. bluetooth socket underlying fd type auto detection added. Fixed segfault with download paths 2026-01-04 17:14:27 +00:00
kidfromjupiter 08e8b50aee fixed crash on bt socket close 2026-01-03 16:45:45 +00:00
kidfromjupiter 43c6c38a55 Fixed race conditions with simultaneous connections 2026-01-03 14:40:02 +00:00
kidfromjupiter ac5a22eb55 Fixed race conditions with simultaneous connections 2026-01-03 14:39:50 +00:00
kidfromjupiter dd21d80dc8 bugfixes and fixes to race conditions. bluetooth advertising only / discovery only works now. linux -> android conn. initiation works. android -> linux doesnt work. android doesn't seem to recognise linux. linux <-> linux works. but each devices have to be in discover/advert modes. can't be both 2026-01-02 12:29:54 +00:00
kidfromjupiter 8f6086345d updated device_info to latest API 2025-12-29 16:35:50 +00:00
kidfromjupiter 6c41d26a86 Doesn't build yet. But did more work to align the older fork with newer APIs. 2025-12-29 13:35:08 +00:00
kidfromjupiter 5f93c46954 ported over BUILD file 2025-12-29 04:41:32 +00:00
kidfromjupiter 1f3da14906 fixed logging bugs 2025-12-29 04:39:40 +00:00
Vibhav Pant 71f54ac820 Add headers. 2023-09-26 18:35:48 +05:30
Vibhav Pant 97af86a414 Fix race conditions with bluetooth devices being erased while being used. 2023-09-26 18:34:56 +05:30
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