<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>openthread secure api</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86820/openthread-secure-api</link><description>Hi, 
 I am trying to integrate the Google IoT Cloud example into my CoAP Server. The example is using Secure API to esablish COAPS. I have enabled 
 CONFIG_OPENTHREAD_COAP=y CONFIG_OPENTHREAD_COAPS=y CONFIG_OPENTHREAD_JOINER=y #CONFIG_NORDIC_SECURITY_BACKEND</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Apr 2022 12:44:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86820/openthread-secure-api" /><item><title>RE: openthread secure api</title><link>https://devzone.nordicsemi.com/thread/362858?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2022 12:44:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28c15e4f-75d7-4355-a086-bdd50f1be2fc</guid><dc:creator>robtic</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thanks for your time, I am building CoAP Server project.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is the coap initialization function I have updated.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;int ot_coap_start_server(void)
{
#if OPENTHREAD_CONFIG_COAP_SECURE_API_ENABLE
    otError error = otCoapSecureStart(srv_context.ot, OT_DEFAULT_COAP_SECURE_PORT);
    if (error != OT_ERROR_NONE)
    {
        LOG_ERR(&amp;quot;Failed to start OT CoAPS. Error: %d&amp;quot;, error);
        goto end;
    }

    otCoapSecureSetDefaultHandler(srv_context.ot, coap_default_handler, NULL);
#else
    otError error = otCoapStart(srv_context.ot, COAP_PORT);
    if (error != OT_ERROR_NONE)
    {
        LOG_ERR(&amp;quot;Failed to start OT CoAP. Error: %d&amp;quot;, error);
        goto end;
    }

    otCoapSetDefaultHandler(srv_context.ot, coap_default_handler, NULL);
#endif
end:
    return error == OT_ERROR_NONE ? 0 : 1;
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: openthread secure api</title><link>https://devzone.nordicsemi.com/thread/362856?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2022 12:41:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e414b87-f78f-4dc6-a5b7-ea351d209e26</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I tried to build the coap client sample from NCS\nrf\samples\openthread\coap_client with the configs that you listed, but I didn&amp;#39;t get any errors. Perhaps there is one of the configs in that sample that triggers the OPENTHREAD_CONFIG_COAP_SECURE_API_ENABLE. I didn&amp;#39;t look too deep into it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What sample are you trying to build?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: openthread secure api</title><link>https://devzone.nordicsemi.com/thread/362797?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2022 09:54:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28b2430b-4023-4e8a-ab74-dbc3110c9f74</guid><dc:creator>robtic</dc:creator><description>&lt;p&gt;It seems that only the main SECURE_API needs to be enabled in Kconfig, to trickle down the other define option.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1649670842388v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>