<?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>Equivalent of SIOCOUTQ ioctl call for sockets on nrf9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104892/equivalent-of-siocoutq-ioctl-call-for-sockets-on-nrf9160</link><description>Hi, 
 I would like to get the amount of unsent data in the socket send queue on nrf9160. For linux there is the SIOCOUTQ ioctl call, is there something equivalent for nrf9160?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Oct 2023 12:52:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104892/equivalent-of-siocoutq-ioctl-call-for-sockets-on-nrf9160" /><item><title>RE: Equivalent of SIOCOUTQ ioctl call for sockets on nrf9160</title><link>https://devzone.nordicsemi.com/thread/451513?ContentTypeID=1</link><pubDate>Fri, 20 Oct 2023 12:52:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6bf66bd-b3ec-4758-b227-475866c2c3fd</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="gjoasen"]&lt;p&gt;So the only way for the application to know if a e.g an mqtt message has been sent is to set qos to 1 and wait for an ack?&lt;/p&gt;
&lt;p&gt;I want to be sure that the messages has been sent, but it is not critical if some get lost. Receiving an ack for each message is way to costly both in terms of power and data usage.&amp;nbsp;&lt;/p&gt;[/quote]
&lt;p&gt;Yes, this is correct. The modem will handle retransmits on a protocol level (TCP, as well as the optional mqtt qos level specific to your chosen protocol) as well as on a physical radio level.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Equivalent of SIOCOUTQ ioctl call for sockets on nrf9160</title><link>https://devzone.nordicsemi.com/thread/451502?ContentTypeID=1</link><pubDate>Fri, 20 Oct 2023 12:38:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5829ba1a-3497-452a-bf0a-566f72355c1d</guid><dc:creator>gjoasen</dc:creator><description>&lt;p&gt;So the only way for the application to know if a e.g an mqtt message has been sent is to set qos to 1 and wait for an ack?&lt;/p&gt;
&lt;p&gt;I want to be sure that the messages has been sent, but it is not critical if some get lost. Receiving an ack for each message is way to costly both in terms of power and data usage.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Equivalent of SIOCOUTQ ioctl call for sockets on nrf9160</title><link>https://devzone.nordicsemi.com/thread/451499?ContentTypeID=1</link><pubDate>Fri, 20 Oct 2023 12:28:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9a85c75-e0c3-4f3c-a162-df950e76e433</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Unfortunately, there is no API to see the depth of the socket queue.&lt;/p&gt;
[quote user=""]is there something equivalent for nrf9160?[/quote]
&lt;p&gt;The closest functionality is to push data until you get a errno returned, unfortunately. The application is not able to get detailed information related to when the data is successfully sent.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>