mirror of
https://github.com/espressif/openthread.git
synced 2026-09-21 08:27:33 +00:00
[coap] remove duplicate method for setting ConnectedCallback (#9691)
This commit removes `CoapSecure::SetClientConnectedCallback()` which is the same as `SetConnectedCallback()`.
This commit is contained in:
@@ -171,7 +171,7 @@ void otCoapSecureSetClientConnectedCallback(otInstance *aIns
|
||||
otHandleCoapSecureClientConnect aHandler,
|
||||
void *aContext)
|
||||
{
|
||||
AsCoreType(aInstance).GetApplicationCoapSecure().SetClientConnectedCallback(aHandler, aContext);
|
||||
AsCoreType(aInstance).GetApplicationCoapSecure().SetConnectedCallback(aHandler, aContext);
|
||||
}
|
||||
|
||||
void otCoapSecureSetDefaultHandler(otInstance *aInstance, otCoapRequestHandler aHandler, void *aContext)
|
||||
|
||||
@@ -258,18 +258,6 @@ public:
|
||||
}
|
||||
#endif // defined(MBEDTLS_BASE64_C) && defined(MBEDTLS_SSL_KEEP_PEER_CERTIFICATE)
|
||||
|
||||
/**
|
||||
* Sets the connected callback to indicate, when a Client connect to the CoAP Secure server.
|
||||
*
|
||||
* @param[in] aCallback A pointer to a function that will be called once DTLS connection is established.
|
||||
* @param[in] aContext A pointer to arbitrary context information.
|
||||
*
|
||||
*/
|
||||
void SetClientConnectedCallback(ConnectedCallback aCallback, void *aContext)
|
||||
{
|
||||
mConnectedCallback.Set(aCallback, aContext);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the authentication mode for the CoAP secure connection. It disables or enables the verification
|
||||
* of peer certificate.
|
||||
|
||||
Reference in New Issue
Block a user