nRF Connect SDK API 2.8.0
Loading...
Searching...
No Matches

◆ nrf_cloud_sec_tag_set()

void nrf_cloud_sec_tag_set ( const sec_tag_t sec_tag)

#include <include/net/nrf_cloud.h>

Set the sec tag used for nRF Cloud credentials. The default sec tag value is.

CONFIG_NRF_CLOUD_COAP_SEC_TAG 

or

CONFIG_NRF_CLOUD_COAP_SEC_TAG 

for CoAP.

Note
This API only needs to be called if the default configured sec tag value is no longer applicable. This function does not perform any management of the device's connection to nRF Cloud. For CoAP, changing this value will change the sec tag used for the DTLS connection only. Use nrf_cloud_sec_tag_coap_jwt_set to set the sec tag used for JWT signing. For normal operation, the DTLS and JWT sec tags should be the same. They should only differ for debugging purposes (network traffic decryption).
Parameters
sec_tagThe sec tag.