mirror of
https://github.com/espressif/openthread.git
synced 2026-09-17 22:50:07 +00:00
[tcat] implement tcat advertisement (#9858)
Commit introduces implementation of TCAT advertisement over BLE compliant with Thread 1.3.1 specification.
This commit is contained in:
@@ -122,10 +122,11 @@ void TestTcat(void)
|
||||
otBleSecureSetSslAuthMode(instance, true);
|
||||
|
||||
// Validate BLE secure and Tcat start APIs
|
||||
VerifyOrQuit(otBleSecureTcatStart(instance, &vendorInfo, nullptr) == kErrorInvalidState);
|
||||
SuccessOrQuit(otBleSecureSetTcatVendorInfo(instance, &vendorInfo));
|
||||
VerifyOrQuit(otBleSecureTcatStart(instance, nullptr) == kErrorInvalidState);
|
||||
SuccessOrQuit(otBleSecureStart(instance, HandleBleSecureConnect, nullptr, true, &ble));
|
||||
VerifyOrQuit(otBleSecureStart(instance, HandleBleSecureConnect, nullptr, true, nullptr) == kErrorAlready);
|
||||
SuccessOrQuit(otBleSecureTcatStart(instance, &vendorInfo, nullptr));
|
||||
SuccessOrQuit(otBleSecureTcatStart(instance, nullptr));
|
||||
|
||||
// Validate connection callbacks when platform informs that peer has connected/disconnected
|
||||
otPlatBleGapOnConnected(instance, kConnectionId);
|
||||
|
||||
Reference in New Issue
Block a user