Guogang Li
45e297cc93
Reduce GATT read during discovery
...
PiperOrigin-RevId: 684175246
2024-10-09 14:36:44 -07:00
Guogang Li
b3684f55c7
Improve logging in DiscoveredPeripheralTracker
...
PiperOrigin-RevId: 683831370
2024-10-08 18:13:59 -07:00
Guogang Li
a08e89f0f1
Decrease BLE header logging level
...
PiperOrigin-RevId: 670758902
2024-09-03 17:18:52 -07:00
Guogang Li
d5b5d92f87
Internal logging update
...
PiperOrigin-RevId: 669420403
2024-08-30 13:08:35 -07:00
Francis Tsui
b03a383f7a
Trivial replacement of NEARBY_LOG with NEARBY_LOGS.
...
PiperOrigin-RevId: 667740113
2024-08-26 15:34:21 -07:00
Guogang Li
4e8111f303
Fixed test cases issue for BLE discovery
...
PiperOrigin-RevId: 667612285
2024-08-26 09:35:43 -07:00
Guogang Li
f1a1c39177
Fixed a potential crash in BLE scanning
...
PiperOrigin-RevId: 663900592
2024-08-16 15:59:28 -07:00
Guogang Li
c4812a2082
Optimized instant on lost
...
PiperOrigin-RevId: 659567920
2024-08-05 08:49:36 -07:00
Guogang Li
52c80303e3
Enhance on advertising
...
PiperOrigin-RevId: 655044204
2024-07-22 23:57:16 -07:00
Guogang Li
7db26f40c5
Report found legacy device
...
PiperOrigin-RevId: 646495727
2024-06-25 08:55:40 -07:00
Guogang Li
bc66c63a48
Fixed the issues to handle on lost advertisement
...
PiperOrigin-RevId: 641268507
2024-06-07 09:14:10 -07:00
Hai Shang
8f51d92f22
internal fix
...
PiperOrigin-RevId: 622893779
2024-04-08 10:49:27 -07:00
Hai Shang
6162fb5f80
add legacy_device_discovered_cb to DiscoveredPeripheralCallback
...
PiperOrigin-RevId: 619702145
2024-03-27 17:45:37 -07:00
Suet-Fei Li
fa2bcbe579
Internal Refactor.
...
PiperOrigin-RevId: 610806721
2024-02-27 10:56:35 -08:00
Anay Wadhera
80c0d0916e
Introduce basic handling for on lost advertisements.
...
PiperOrigin-RevId: 602910198
2024-01-30 19:33:35 -08:00
Anay Wadhera
7022e6c5d9
Create instant on loss advertisement format
...
PiperOrigin-RevId: 590680562
2023-12-13 12:33:12 -08:00
Janusz Sobczak
746a8b6231
Use AnyInvocable in mediums/ble_v2
...
PiperOrigin-RevId: 566437160
2023-09-18 15:56:54 -07:00
Janusz Sobczak
52c3360bd3
Use AnyInvocable in DiscoveredPeripheralCallback
...
PiperOrigin-RevId: 564523999
2023-09-11 15:48:25 -07:00
Guogang Li
ea7aa00e0c
Avoid reading GATT server for same advertisement
...
PiperOrigin-RevId: 558944228
2023-08-21 17:24:03 -07:00
Janusz Sobczak
5393daf9f1
Merge logging and types build targets
...
Both "types" and "logging" build targets included "logging.h"
Merging them together avoids circular dependencies.
PiperOrigin-RevId: 555262816
2023-08-09 19:13:12 -07:00
Guogang Li
2c90a61fca
Fixed crash when flag update in peripheral tracker
...
PiperOrigin-RevId: 540294615
2023-06-14 09:35:47 -07:00
Guogang Li
dbd42b0de3
Handle GATT query in separate thread
...
PiperOrigin-RevId: 538819295
2023-06-08 10:10:00 -07:00
Janusz Sobczak
0901aec6e2
Add BleMedium::GetRemotePeripheral
...
Added:
nearby::api::ble_v2::BlePeripheral::GetUniqueId()
nearby::api::ble_v2::BleMedium::GetRemotePeripheral(...)
Moved BlePeripheral implementation from bluetooth_adapter_* to ble_v2.*
Added G3 (test) implementation for the new methods.
PiperOrigin-RevId: 531023568
2023-05-10 15:40:38 -07:00
Guogang Li
9130b61f15
Only handle possible advertising advertising packet for BLE V2
...
PiperOrigin-RevId: 519292612
2023-03-24 19:23:09 -07:00
Guogang Li
335c07624e
Fixed the issue to encode BLE V2 advertisement header
...
PiperOrigin-RevId: 517267592
2023-03-16 17:06:02 -07:00
Guogang Li
fd5430764f
Created NearbyFlags to avoid create multiple classes
...
PiperOrigin-RevId: 516885843
2023-03-15 11:44:25 -07:00
Guogang Li
e539d021a3
Added flag for BLE v2 in nearby connections
...
PiperOrigin-RevId: 516585139
2023-03-14 11:35:49 -07:00
Guogang Li
4f7b61ad79
Added flag to control whether enable base64 in BLE advertisement header
...
PiperOrigin-RevId: 513924031
2023-03-06 07:03:30 -08:00
Edwin Wu
517ff0f52e
[Nearby Connections] Add control packet in BlePacket
...
PiperOrigin-RevId: 513573452
2023-03-02 10:21:07 -08:00
Janusz Sobczak
f4d85f9b90
Migrate to AnyInvocable in platform code
...
PiperOrigin-RevId: 504104740
2023-01-23 16:04:21 -08:00
Suet-Fei Li
084f7ebd88
Remove location namespace in third_party/nearby.
...
PiperOrigin-RevId: 500023196
2023-01-06 02:53:57 -08:00
John Carroll
55c4714b99
Cleanup the code. Change inputs on ImplementationPlatform::GetDownloadPath from std::string& to absl::string_view.
...
PiperOrigin-RevId: 472770249
2022-09-07 11:22:24 -07:00
edwinwu
12dcd319e0
[BLE Refactor] Implement iOS BLE outgoing(request) connection.
...
PiperOrigin-RevId: 459381179
2022-07-06 17:13:14 -07:00
jfcarroll
88ee3ba338
This needs to be declared in order to build on windows (and since it's declared that way in the header)
...
PiperOrigin-RevId: 454077812
2022-06-09 21:09:31 -07:00
edwinwu
9069451c08
[BLE Refactor] Add Base64 encoder to BleAdvertisementHeader
...
PiperOrigin-RevId: 453567012
2022-06-07 17:59:33 -07:00
edwinwu
8e048f7be0
[BLE Refactor] Uses Uuid class for those used in Uuid string-form in /medium layer.
...
PiperOrigin-RevId: 450910238
2022-05-25 06:36:55 -07:00
edwinwu
01f439b9ad
[BLE Refactor] Add Extended advertisement support.
...
PiperOrigin-RevId: 449619994
2022-05-18 17:45:04 -07:00
edwinwu
412f9e0752
[BLE Refactor] Connects BleV2 mediums to PCP handler.
...
PiperOrigin-RevId: 449196646
2022-05-17 05:42:05 -07:00
edwinwu
12cef58420
[BLE Refactor] Refactor BlePeripheral class.
...
PiperOrigin-RevId: 447638179
2022-05-09 21:27:58 -07:00
edwinwu
771ce23fa3
[BLE Refactor] Implements advertisement tracking in Ble medium with DiscoveredPeripheralTracker class.
...
PiperOrigin-RevId: 447397658
2022-05-09 00:36:33 -07:00
edwinwu
d1b2437b0d
[BLE Refactor] Implements BleExtraField in mediums::BleAdvertisement for Extended advertisement.
...
PiperOrigin-RevId: 441665698
2022-04-13 22:06:57 -07:00
edwinwu
3050f9432c
[BLE Refactor] Implements DiscoveredPeripheralTracker.
...
PiperOrigin-RevId: 441524475
2022-04-13 10:56:16 -07:00
edwinwu
59ea8e8005
[BLE Refactor] Add Psm value to BleAdvertisement and BleAdvertisementHeader.
...
PiperOrigin-RevId: 440410863
2022-04-08 11:20:59 -07:00
edwinwu
0747c0a349
[BLE Refactor] Tune BleAdvertisement, BleAdvertisementHeader, BlePeripheral, AdvertisementReadResult, BleUtils.
...
PiperOrigin-RevId: 439365106
2022-04-04 11:19:24 -07:00
edwinwu
190d3ebafc
[BLE Refactor] Impl Start/Stop Scanning and DiscoveredPeripheral callback function in medium layer and ScanCallback in platform layer.
...
PiperOrigin-RevId: 438293171
2022-03-30 07:08:05 -07:00
edwinwu
c3d4ffba65
[BLE Refactor] Fixed BloomFilterBase base member _bits is not initialized when construct from a non-empty ByteArray.
...
PiperOrigin-RevId: 436229874
2022-03-21 09:37:53 -07:00
edwinwu
0702409047
[BLE Refactor] Modify to allow zero numSlots for AdvertisementHeader.
...
PiperOrigin-RevId: 434634152
2022-03-14 19:39:50 -07:00
edwinwu
8326aeef38
[BLE Refactor] Implement CreateAdvertisementHeader in BleV2 medium.
...
PiperOrigin-RevId: 429550598
2022-02-18 06:30:09 -08:00
suetfei
37f8b4487e
Internal flow change phase 2.
...
PiperOrigin-RevId: 427059704
2022-02-07 17:17:20 -08:00
hais
f5fcd35ced
nearby sdk refactor
...
PiperOrigin-RevId: 425434260
2022-02-02 11:56:39 -08:00