Guogang Li
5181686431
Add help class to create nw_parameters_t
...
PiperOrigin-RevId: 758036909
2025-05-12 21:26:37 -07:00
Edwin Wu
fc0768f2c4
Add completion handler to opened L2CAP channel for iOS client.
...
PiperOrigin-RevId: 753363177
2025-04-30 16:49:59 -07:00
Edwin Wu
422030f826
Fix: BLE L2CAP packet processing can't handle fragmentation.
...
PiperOrigin-RevId: 752482441
2025-04-28 16:10:48 -07:00
Edwin Wu
d2144cac1b
Refactor start listening channel to provide PSM and channel opened callback separately.
...
PiperOrigin-RevId: 750065027
2025-04-21 23:43:07 -07:00
Edwin Wu
4911d49f82
Implementation of BLE L2CAP connecting flow.
...
PiperOrigin-RevId: 749092197
2025-04-18 11:26:54 -07:00
Edwin Wu
24b8cff1a7
feat: add GNCBLEL2CAPClient
...
PiperOrigin-RevId: 749085219
2025-04-18 11:04:50 -07:00
Mingshiou Wu
dba354f5b1
Extend BLE advertisement header data size from 20 to 23 on BLE_V2.
...
PiperOrigin-RevId: 748903662
2025-04-17 20:34:34 -07:00
Edwin Wu
7f488271f1
Implement openL2CAPServerWithCompletionHandler in GNCBLEMedium class.
...
PiperOrigin-RevId: 745877478
2025-04-09 22:58:34 -07:00
Edwin Wu
675e4f738f
Refactor the GNCBLEL2CAPServer.
...
PiperOrigin-RevId: 745855701
2025-04-09 21:48:02 -07:00
Edwin Wu
ea78dcf616
Implement L2CAP stream wrapper.
...
PiperOrigin-RevId: 741161066
2025-03-27 08:22:27 -07:00
Edwin Wu
18f52de400
Implement L2CAPServer
...
PiperOrigin-RevId: 733593766
2025-03-04 22:50:09 -08:00
Guogang Li
528c71490c
fix a base85 bug on iOS
...
PiperOrigin-RevId: 731849590
2025-02-27 13:44:15 -08:00
Anay Wadhera
29792c8938
Swap rules to OSS
...
PiperOrigin-RevId: 731795253
2025-02-27 11:16:31 -08:00
Guogang Li
5c3cc4eb71
Add base85 extension to NSData
...
PiperOrigin-RevId: 731381576
2025-02-26 11:02:30 -08:00
Edwin Wu
0c1b0ae1d9
Rename NWFramwork folder name to a more proper name WiFiCommon
...
PiperOrigin-RevId: 728865577
2025-02-19 16:43:32 -08:00
Edwin Wu
74146df90a
Rename WifiLan to NWFramework(Network.Framework) and put them as common codes.
...
PiperOrigin-RevId: 725486114
2025-02-10 22:47:21 -08:00
Nick Bourdakos
1a87241ffd
Implement GattClient#Disconnect for Apple implementation of BLEv2
...
PiperOrigin-RevId: 679218551
2024-09-26 11:09:30 -07:00
Guogang Li
387a51b260
internal update
...
PiperOrigin-RevId: 619595164
2024-03-27 11:25:55 -07:00
Nick Bourdakos
16c6ef924b
Fix iOS BLE bugs and crashes
...
PiperOrigin-RevId: 561695661
2023-08-31 10:37:46 -07:00
Nick Bourdakos
965cc0ecbc
Add implementation for async BLE start scan/advertise
...
PiperOrigin-RevId: 559863656
2023-08-24 14:07:46 -07:00
Nick Bourdakos
91fb4a9a3e
Add stop advertising and stop scanning BLE implementation for Apple platforms
...
PiperOrigin-RevId: 559838443
2023-08-24 12:45:23 -07:00
Nick Bourdakos
387393f1d6
Delete old BLE code for Apple platforms
...
PiperOrigin-RevId: 559515626
2023-08-23 12:54:15 -07:00
Nick Bourdakos
034865481a
Sanitize incoming file names
...
PiperOrigin-RevId: 559175545
2023-08-22 11:37:02 -07:00
Nick Bourdakos
7933842c29
Add BLE Medium
...
PiperOrigin-RevId: 557933813
2023-08-17 14:17:28 -07:00
Nick Bourdakos
4aa52b45f9
Add GATT client
...
PiperOrigin-RevId: 557919250
2023-08-17 13:27:39 -07:00
Nick Bourdakos
0a13ce51f4
Make GNCBLEGATTServer thread safe
...
Fixes an issue where if a characteristic is created and then updated with a non-nil value, and a new characteristic under the same service is added, then when the service is re-added the old characteristic will be permanently cached and the dynamic reads will stop working.
This also eliminates the issue when characteristics are created concurrently, since service additions are batched, if the service addition fails then only one of the characteristics will know that it failed to get added.
This change also introduces the nuance of "success" does not mean the CoreBluetooth method has completed successfully, but instead means that the intended state has been recorded and the class will do its best to maintain that state. For example, a successful "start advertising" call means that we have the advertisement cached and we will start advertising as soon as we can (like BT transitions from off to on) and will do our best to keep advertising (like BT transitions from on to off to on again).
PiperOrigin-RevId: 551660634
2023-07-27 15:40:30 -07:00
Nick Bourdakos
de3f638129
Extract BLE code into its own target
...
PiperOrigin-RevId: 551074383
2023-07-25 20:23:59 -07:00
Nick Bourdakos
0f8e5283a4
Add GATT server
...
PiperOrigin-RevId: 549080231
2023-07-18 12:37:23 -07:00
Nick Bourdakos
96348b6ba7
Add BLE conversion utils
...
PiperOrigin-RevId: 547958170
2023-07-13 16:20:04 -07:00
Nick Bourdakos
e0b2e176c8
Add Objective-C GATT characteristic container.
...
PiperOrigin-RevId: 547954006
2023-07-13 16:05:18 -07:00
Nick Bourdakos
12f9512a19
Use IOS_LATEST for the test runner to prevent Xcode 14.3 issues
...
PiperOrigin-RevId: 541053739
2023-06-16 17:37:39 -07:00
Nick Bourdakos
84f480fdd1
Fix IP address bug where 4 byte version wasn't converted to dotted decimal form
...
Introduces a tested `GNCIPAddress` class to make it more explicit of which IP address format is being used at call sites to prevent similar issues in the future.
PiperOrigin-RevId: 528572993
2023-05-01 14:20:12 -07:00
Eiden Kim
aea5b223d3
Create min iOS and test runner under third_party/nearby for common test target.
...
PiperOrigin-RevId: 527754820
2023-04-27 19:52:01 -07:00
hai007
5dfe7094c3
Update unit test minimum IOS version to 13.7
...
PiperOrigin-RevId: 527738714
2023-04-27 18:09:15 -07:00
Eiden Kim
b0985c70b4
Update iOS unit test min version to have IOS_MINIMUM_OS
...
PiperOrigin-RevId: 527675057
2023-04-27 13:56:15 -07:00
hai007
17ce9c7dd2
Add the missing apple SDK framework dependencies.
...
PiperOrigin-RevId: 520936213
2023-03-31 09:07:14 -07:00
Qin Wang
4727861f5d
Refactor GattCharactristic to support bitwise combination of Permission and Property
...
PiperOrigin-RevId: 513339751
2023-03-01 14:21:04 -08:00
Qin Wang
ed9890957f
Upgrade minimum_os_version to 13.0
...
PiperOrigin-RevId: 504597125
2023-01-25 10:23:19 -08:00
Janusz Sobczak
4fc1583b94
Migrate to absl::AnyInvocable
...
PiperOrigin-RevId: 501392167
2023-01-11 15:19:33 -08:00
Suet-Fei Li
084f7ebd88
Remove location namespace in third_party/nearby.
...
PiperOrigin-RevId: 500023196
2023-01-06 02:53:57 -08:00
Nick Bourdakos
07998a05ed
Change "ios" package name to "apple" since its usage isn't limited to iOS
...
PiperOrigin-RevId: 497046967
2022-12-21 18:09:42 -08:00