<?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>NB-IoT − Simple UDP Example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51974/nb-iot-simple-udp-example</link><description>Hello, 
 
 is there any kind of good practice available about how to generate UDP traffic with the nRF9160DK via NB-IoT for a simple test? 
 As far as I know the AT client example does not support IPv4/v6 commands but https://github.com/Rallare/fw-nrfconnect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Sep 2019 10:20:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51974/nb-iot-simple-udp-example" /><item><title>RE: NB-IoT − Simple UDP Example</title><link>https://devzone.nordicsemi.com/thread/208860?ContentTypeID=1</link><pubDate>Tue, 10 Sep 2019 10:20:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:382bffed-046d-4eb6-a52e-4899b76ebfbd</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;There are examples for UDP in that repo you posted.&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/samples/nrf9160/udp_with_psm/src/main.c"&gt;https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/samples/nrf9160/udp_with_psm/src/main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;AT Commands are how we interface with and configure the modem but under most applications, the use of sockets will handle data transport.&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://github.com/Rallare/fw-nrfconnect-nrf/blob/dea99f9afc37c9a69d66d7136d89d38c050a2fde/samples/nrf9160/udp_with_psm/src/main.c#L135"&gt;https://github.com/Rallare/fw-nrfconnect-nrf/blob/dea99f9afc37c9a69d66d7136d89d38c050a2fde/samples/nrf9160/udp_with_psm/src/main.c#L135&lt;/a&gt; for how a socket is setup in code for UDP transport.&lt;/p&gt;
&lt;p&gt;Refer to &lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/master/include/net/socket.h"&gt;https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/master/include/net/socket.h&lt;/a&gt; for sockets.&lt;/p&gt;
&lt;p&gt;Note that we use the prj.conf option &amp;#39;CONFIG_NET_SOCKETS_POSIX_NAMES=y&amp;#39; to transform socket functions into tider names. i.e. zsock_socket() -&amp;gt; socket()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>