<?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>Alerts and Logs over CoAP</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109421/alerts-and-logs-over-coap</link><description>Hey all, 
 
 I have some questions related to which protocol is used when sending Alerts and Logs when CoAP is enabled. According to the Logs and Alerts documentation logs and alerts can only be sent using MQTT or REST. However, when enabling CoAP communication</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Mar 2024 03:09:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109421/alerts-and-logs-over-coap" /><item><title>RE: Alerts and Logs over CoAP</title><link>https://devzone.nordicsemi.com/thread/474747?ContentTypeID=1</link><pubDate>Wed, 20 Mar 2024 03:09:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98cbfbb4-52ba-4c96-b6ca-41c3aea0320c</guid><dc:creator>kurreman</dc:creator><description>&lt;p&gt;Hello Maria,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for a thorough answer, it&amp;#39;s really appreciated! I&amp;#39;ll definitely keep using the modem trace approach for future packet inspections.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Koray&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Alerts and Logs over CoAP</title><link>https://devzone.nordicsemi.com/thread/474664?ContentTypeID=1</link><pubDate>Tue, 19 Mar 2024 14:46:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffec1e97-481c-4204-a17f-9d86eafcf1d0</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hi Koray, &lt;/p&gt;
&lt;p&gt;Short answer: When CoAP is enabled, the alerts are sent with CoAP.&lt;/p&gt;
&lt;p&gt;Longer explanation:&lt;/p&gt;
&lt;p&gt;By searching in the source code related to the sample you can see that alerts are supported over CoAP. You can see that the nrf_cloud_coap.h file is included in the nrf/subsys/net/lib/nrf_cloud/nrf_cloud_alert.c file &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.5.1/subsys/net/lib/nrf_cloud/src/nrf_cloud_alert.c#L16-L18"&gt;here on GitHub&lt;/a&gt;. The alert send function is defined on &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.5.1/subsys/net/lib/nrf_cloud/src/nrf_cloud_alert.c#L150-L191"&gt;lines 150-191&lt;/a&gt; and has logs on the error and debug levels.&lt;/p&gt;
&lt;p&gt;To verify that the alert sending is using the CoAP definition of nrf_cloud_alert_send() you can enable logging at a debug level by replacing&amp;nbsp;CONFIG_NRF_CLOUD_LOG_LOG_LEVEL_INF=y with&amp;nbsp;CONFIG_NRF_CLOUD_LOG_LOG_LEVEL_DBG=y in overlay_coap.conf.&lt;/p&gt;
&lt;p&gt;Alternatively you can do a &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.1/nrf/device_guides/working_with_nrf/nrf91/nrf91_features.html#modem-trace"&gt;modem trace&lt;/a&gt; which you can convert into a .pcap format through &lt;a href="https://docs.nordicsemi.com/bundle/nrf-connect-cellularmonitor/page/index.html"&gt;Cellular Monitor&lt;/a&gt; to inspect the packets in Wireshark. The inspection should show that the packets are using CoAP.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>