<?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>nRF5340: MQTT subscribe failed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108095/nrf5340-mqtt-subscribe-failed</link><description>Hi Support team, 
 The communication of my net-core of nRF5340 is working well, and I want to try mqtt subscription, but it always fails, could you help give me some hints? 
 I try to do the subscription in the event handler of MQTT_EVT_CONNACK: 
 
 The</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Feb 2024 13:26:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108095/nrf5340-mqtt-subscribe-failed" /><item><title>RE: nRF5340: MQTT subscribe failed</title><link>https://devzone.nordicsemi.com/thread/469810?ContentTypeID=1</link><pubDate>Tue, 20 Feb 2024 13:26:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc8a73d3-cf4a-47a5-846f-6d9d1e023b3c</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;Thank you for the detailed reply, which perfectly answered my question, thank you very much:).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Yanpeng Wu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: MQTT subscribe failed</title><link>https://devzone.nordicsemi.com/thread/469793?ContentTypeID=1</link><pubDate>Tue, 20 Feb 2024 12:36:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c34a4984-6ca4-4773-a8d8-ba094a20b37a</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;I am mostly working with the nRF9160, where the socket operations are offloaded to the modem, so I am not supoer familiar with the finer points of Zephyr&amp;#39;s IP stack.&lt;/p&gt;
&lt;p&gt;However, things should mostly be the same, so while this is based on how we do things on the nRF9160, it should be transferable to your modem as well:&lt;/p&gt;
&lt;p&gt;When you call poll(), the current thread is blocked until something happens on one of the polled sockets, or the call times out. While the thread is blocked, other threads can run, or if there are no other runnable threads, the scheduler will put the CPU in idle. So calling poll() shouldn&amp;#39;t cause any extra power consumption, and it also shouldn&amp;#39;t affect the performance.&lt;/p&gt;
&lt;p&gt;For MQTT, what we typically do, is to call poll with the timeout equal to the time until we must send the next keepalive message. If we receive an incomming message before that time, poll() will return, indicating that we have received a message, so we can call mqtt_input() to handle the message. If no message is received before poll() times out, it will indicate that it timed out, and we can send a keepalive message().&lt;/p&gt;
&lt;p&gt;You can see an example of that in one of the exercises from our Cellular Fundamentals course on the Nordic DevAcademy: &lt;a href="https://github.com/NordicDeveloperAcademy/cell-fund/blob/master/v2.4.0-v2.x.x/lesson4/cellfund_less4_exer1_solution/src/main.c#L140-L170"&gt;https://github.com/NordicDeveloperAcademy/cell-fund/blob/master/v2.4.0-v2.x.x/lesson4/cellfund_less4_exer1_solution/src/main.c#L140-L170&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Note that in this case, we call mqtt_live() each time poll() returns, regardless of cause. mqtt_live() will only send a keepalive packet if necessary.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: MQTT subscribe failed</title><link>https://devzone.nordicsemi.com/thread/469259?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2024 13:48:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:644d5cf8-d843-45ae-bed2-65abc9cc753c</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;Thank you for your reply. I realized the client callback mqtt_evt_handler is not purely triggered by events, it needs to be triggered by calling zsock_poll and mqtt_input.&lt;br /&gt;Now the inbound messages can be received.&lt;/p&gt;
&lt;p&gt;To have a good real-time response to the inbound messages, how to set the timeout in zsock_poll, and how frequently to call the zsock_poll?&lt;br /&gt;Seems there is a tradeoff between the real-time response and performance/power consumption. Could you give some guidance on this? Thank you very much.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Yanpeng Wu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: MQTT subscribe failed</title><link>https://devzone.nordicsemi.com/thread/468706?ContentTypeID=1</link><pubDate>Tue, 13 Feb 2024 18:29:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecdd6b5d-c91e-480e-8e36-7bf65112bc55</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi, and sorry for the late reply.&lt;/p&gt;
&lt;p&gt;Have you tried to send data with QoS1 (or 2)?&lt;/p&gt;
&lt;p&gt;Are you calling mqtt_input in your application?&lt;/p&gt;
&lt;p&gt;Or otherwise checking for incoming packets other than the CONNACK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: MQTT subscribe failed</title><link>https://devzone.nordicsemi.com/thread/468578?ContentTypeID=1</link><pubDate>Tue, 13 Feb 2024 11:59:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25a8b3c0-5c1e-493a-9706-ac949108ddf6</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Hi Support team,&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The latest update:&lt;/strong&gt; After I set the CONFIG_NET_BUF_DATA_POOL_SIZE, CONFIG_NET_BUF_RX_COUNT, and CONFIG_NET_PKT_RX_COUNT big enough, there is no &amp;#39;modem_ppp: Dropped frame, no net_pkt available&amp;#39; anymore.&lt;/p&gt;
&lt;p&gt;But for the MQTT sequences:&lt;br /&gt;1. the mqtt_connect() is ok and the MQTT_EVT_CONNACK can be received.&lt;br /&gt;2. and the mqtt_subscribe() can be called successfully, the return value is 0 which means the call is successful.&amp;nbsp;But&amp;nbsp;the subscription is with QoS1, no MQTT_EVT_SUBACK was received.&lt;br /&gt;3. When I used another MQTT client to publish data to the subscribed topic, nothing&amp;nbsp;was received in mqtt_evt_handler().&lt;br /&gt;4. during the process, the&amp;nbsp;mqtt_publish() is always successful, the published messages can be received from another client.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;During the above process, from the trace we can see the net_mqtt_rx() only be called once for the MQTT_PKT_TYPE_CONNACK.&lt;/p&gt;
&lt;p&gt;The trace is as below:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting nRF Connect SDK v2.5.1 ***
[00:00:00.003,021] &amp;lt;inf&amp;gt; mqtttest: Bring up network interface
[00:00:00.003,112] &amp;lt;wrn&amp;gt; mqtttest: (1). Bring up network interface OK! ret = 0
[00:00:00.003,112] &amp;lt;inf&amp;gt; mqtttest: Waiting for L4 connected
[00:00:16.337,646] &amp;lt;dbg&amp;gt; net_mqtt_enc: connect_request_encode: Encoding Will Topic.
                                       73 70 42 76 31 2e 30 2f  42 44 53 2f 4e 44 45 41 |spBv1.0/ BDS/NDEA
                                       54 48 2f 4e 6f 64 65 31                          |TH/Node1         
--- 14 messages dropped ---
[00:00:16.337,677] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_utf8_str: (main): &amp;gt;&amp;gt; str_size:0000001a cur:0x21003c99, end:0x21003d75
[00:00:16.337,707] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint16: (main): &amp;gt;&amp;gt; val:0018 cur:0x21003c99, end:0x21003d75
[00:00:16.337,738] &amp;lt;dbg&amp;gt; net_mqtt_enc: connect_request_encode: Encoding Will Message.
                                       54 68 65 20 77 69 6c 6c  20 70 61 79 6c 6f 61 64 |The will  payload
                                       20 6f 66 20 4e 44 45 41  54 48                   | of NDEA TH      
[00:00:16.337,799] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_utf8_str: (main): &amp;gt;&amp;gt; str_size:0000001c cur:0x21003cb3, end:0x21003d75
[00:00:16.337,829] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint16: (main): &amp;gt;&amp;gt; val:001a cur:0x21003cb3, end:0x21003d75
[00:00:16.337,860] &amp;lt;dbg&amp;gt; net_mqtt_enc: connect_request_encode: Encoding Username.
                                       72 77                                            |rw               
[00:00:16.337,921] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_utf8_str: (main): &amp;gt;&amp;gt; str_size:00000004 cur:0x21003ccf, end:0x21003d75
[00:00:16.337,951] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint16: (main): &amp;gt;&amp;gt; val:0002 cur:0x21003ccf, end:0x21003d75
[00:00:16.337,982] &amp;lt;dbg&amp;gt; net_mqtt_enc: connect_request_encode: Encoding Password.
                                       72 65 61 64 77 72 69 74  65                      |readwrit e       
[00:00:16.338,043] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_utf8_str: (main): &amp;gt;&amp;gt; str_size:0000000b cur:0x21003cd3, end:0x21003d75
[00:00:16.338,073] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint16: (main): &amp;gt;&amp;gt; val:0009 cur:0x21003cd3, end:0x21003d75
[00:00:16.338,165] &amp;lt;dbg&amp;gt; net_mqtt_enc: packet_length_encode: (main): &amp;gt;&amp;gt; length:0x00000064 cur:0, end:0
--- 1 messages dropped ---
[00:00:16.338,195] &amp;lt;dbg&amp;gt; net_mqtt_enc: mqtt_encode_fixed_header: (main): Fixed header length = 02
[00:00:16.338,226] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint8: (main): &amp;gt;&amp;gt; val:10 cur:0x21003c78, end:0x21003d75
[00:00:16.338,287] &amp;lt;dbg&amp;gt; net_mqtt_enc: packet_length_encode: (main): &amp;gt;&amp;gt; length:0x00000064 cur:0x21003c79, end:0x21003d75
[00:00:16.340,515] &amp;lt;inf&amp;gt; net_mqtt: Connect completed                             --------------------------------------------------MQTT connect OK
[00:00:16.340,545] &amp;lt;inf&amp;gt; mqtttest: mqtt_connect OK, rc is 0
[00:00:16.633,422] &amp;lt;inf&amp;gt; mqtttest: do zsock_poll() 2s, ret = 1
[00:00:16.633,453] &amp;lt;dbg&amp;gt; net_mqtt: mqtt_input: (main): state:0x00000002
[00:00:16.633,544] &amp;lt;dbg&amp;gt; net_mqtt_dec: unpack_uint8: (main): &amp;gt;&amp;gt; cur:0x21003d75, end:0x21003d77
[00:00:16.633,575] &amp;lt;dbg&amp;gt; net_mqtt_dec: unpack_uint8: (main): &amp;lt;&amp;lt; val:20
[00:00:16.633,605] &amp;lt;dbg&amp;gt; net_mqtt_dec: packet_length_decode: (main): length:0x00000002
[00:00:16.633,697] &amp;lt;dbg&amp;gt; net_mqtt_rx: mqtt_handle_packet: (main): [CID 0x21002f30]: Received MQTT_PKT_TYPE_CONNACK!
[00:00:16.633,728] &amp;lt;dbg&amp;gt; net_mqtt_dec: unpack_uint8: (main): &amp;gt;&amp;gt; cur:0x21003d77, end:0x21003d79
[00:00:16.633,789] &amp;lt;dbg&amp;gt; net_mqtt_dec: unpack_uint8: (main): &amp;lt;&amp;lt; val:01
[00:00:16.633,819] &amp;lt;dbg&amp;gt; net_mqtt_dec: unpack_uint8: (main): &amp;gt;&amp;gt; cur:0x21003d78, end:0x21003d79
[00:00:16.633,850] &amp;lt;dbg&amp;gt; net_mqtt_dec: unpack_uint8: (main): &amp;lt;&amp;lt; val:00
[00:00:16.633,880] &amp;lt;dbg&amp;gt; net_mqtt_dec: connect_ack_decode: (main): [CID 0x21002f30]: session_present_flag: 1
[00:00:16.633,911] &amp;lt;dbg&amp;gt; net_mqtt_rx: mqtt_handle_packet: (main): [CID 0x21002f30]: return_code: 0
[00:00:16.633,911] &amp;lt;wrn&amp;gt; mqtttest: -----[mqtt_evt_handler]
[00:00:16.633,941] &amp;lt;wrn&amp;gt; mqtttest: -----[MQTT_EVT_CONNACK] MQTT client connected!   -------------------------------------MQTT_EVT_CONNACK received
[00:00:16.633,972] &amp;lt;wrn&amp;gt; main: -----[MAIN] Sleep 10s after mqtt connect, before publish birth
[00:00:26.644,744] &amp;lt;dbg&amp;gt; net_mqtt_enc: packet_length_encode: (main): &amp;gt;&amp;gt; length:0x000002e5 cur:0, end:0
--- 5 messages dropped ---
[00:00:26.644,775] &amp;lt;dbg&amp;gt; net_mqtt_enc: mqtt_encode_fixed_header: (main): Fixed header length = 03
[00:00:26.644,836] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint8: (main): &amp;gt;&amp;gt; val:30 cur:0x21003c77, end:0x21003d75
[00:00:26.644,866] &amp;lt;dbg&amp;gt; net_mqtt_enc: packet_length_encode: (main): &amp;gt;&amp;gt; length:0x000002e5 cur:0x21003c78, end:0x21003d75
[00:00:26.644,897] &amp;lt;dbg&amp;gt; net_mqtt: client_write_msg: (main): [0x21002f30]: Transport writing message.
[00:00:26.704,803] &amp;lt;dbg&amp;gt; net_mqtt: client_write_msg: (main): [0x21002f30]: Transport write complete.
[00:00:26.704,833] &amp;lt;dbg&amp;gt; net_mqtt: mqtt_publish: (main): [CID 0x21002f30]:[State 0x06]: &amp;lt;&amp;lt; result 0x00000000
[00:00:26.709,197] &amp;lt;wrn&amp;gt; sparkplugb: PUBLISH DEVICE BIRTH
[00:00:26.714,782] &amp;lt;dbg&amp;gt; net_mqtt: mqtt_publish: (main): [CID 0x21002f30]:[State 0x06]: &amp;gt;&amp;gt; Topic size 0x00000020, Data size 0x00000196
[00:00:26.714,843] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_utf8_str: (main): &amp;gt;&amp;gt; str_size:00000022 cur:0x21003c7a, end:0x21003d75
[00:00:26.714,904] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint16: (main): &amp;gt;&amp;gt; val:0020 cur:0x21003c7a, end:0x21003d75
[00:00:26.714,935] &amp;lt;dbg&amp;gt; net_mqtt_enc: mqtt_encode_fixed_header: (main): &amp;lt;&amp;lt; msg type:0x30 length:0x000001b8
[00:00:26.714,965] &amp;lt;dbg&amp;gt; net_mqtt_enc: packet_length_encode: (main): &amp;gt;&amp;gt; length:0x000001b8 cur:0, end:0
[00:00:26.715,026] &amp;lt;dbg&amp;gt; net_mqtt_enc: mqtt_encode_fixed_header: (main): Fixed header length = 03
[00:00:26.715,057] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint8: (main): &amp;gt;&amp;gt; val:30 cur:0x21003c77, end:0x21003d75
[00:00:26.715,118] &amp;lt;dbg&amp;gt; net_mqtt_enc: packet_length_encode: (main): &amp;gt;&amp;gt; length:0x000001b8 cur:0x21003c78, end:0x21003d75
[00:00:26.715,179] &amp;lt;dbg&amp;gt; net_mqtt: client_write_msg: (main): [0x21002f30]: Transport writing message.
[00:00:26.715,393] &amp;lt;dbg&amp;gt; net_mqtt: client_write_msg: (main): [0x21002f30]: Transport write complete.
[00:00:26.715,423] &amp;lt;dbg&amp;gt; net_mqtt: mqtt_publish: (main): [CID 0x21002f30]:[State 0x06]: &amp;lt;&amp;lt; result 0x00000000-----------------------1st publish OK
[00:00:26.717,712] &amp;lt;wrn&amp;gt; main: NetworkCore - Hello 1
[00:00:36.717,803] &amp;lt;wrn&amp;gt; main: NetworkCore - Hello 2
[00:00:46.717,895] &amp;lt;wrn&amp;gt; main: NetworkCore - Hello 3
[00:00:56.717,987] &amp;lt;wrn&amp;gt; main: NetworkCore - Hello 4
[00:01:06.718,109] &amp;lt;dbg&amp;gt; net_mqtt: mqtt_subscribe: (main): [CID 0x21002f30]:[State 0x06]: &amp;gt;&amp;gt; message id 0xe95b topic count 0x0002
[00:01:06.718,200] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint16: (main): &amp;gt;&amp;gt; val:e95b cur:0x21003c7a, end:0x21003d75
[00:01:06.718,231] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_utf8_str: (main): &amp;gt;&amp;gt; str_size:00000014 cur:0x21003c7c, end:0x21003d75
[00:01:06.718,261] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint16: (main): &amp;gt;&amp;gt; val:0012 cur:0x21003c7c, end:0x21003d75
[00:01:06.718,322] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint8: (main): &amp;gt;&amp;gt; val:01 cur:0x21003c90, end:0x21003d75
[00:01:06.718,353] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_utf8_str: (main): &amp;gt;&amp;gt; str_size:00000014 cur:0x21003c91, end:0x21003d75
[00:01:06.718,414] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint16: (main): &amp;gt;&amp;gt; val:0012 cur:0x21003c91, end:0x21003d75
[00:01:06.718,444] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint8: (main): &amp;gt;&amp;gt; val:01 cur:0x21003ca5, end:0x21003d75
[00:01:06.718,475] &amp;lt;dbg&amp;gt; net_mqtt_enc: mqtt_encode_fixed_header: (main): &amp;lt;&amp;lt; msg type:0x82 length:0x0000002c
[00:01:06.718,536] &amp;lt;dbg&amp;gt; net_mqtt_enc: packet_length_encode: (main): &amp;gt;&amp;gt; length:0x0000002c cur:0, end:0
[00:01:06.718,566] &amp;lt;dbg&amp;gt; net_mqtt_enc: mqtt_encode_fixed_header: (main): Fixed header length = 02
[00:01:06.718,597] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint8: (main): &amp;gt;&amp;gt; val:82 cur:0x21003c78, end:0x21003d75
[00:01:06.718,627] &amp;lt;dbg&amp;gt; net_mqtt_enc: packet_length_encode: (main): &amp;gt;&amp;gt; length:0x0000002c cur:0x21003c79, end:0x21003d75
[00:01:06.718,658] &amp;lt;dbg&amp;gt; net_mqtt: client_write: (main): [0x21002f30]: Transport writing 46 bytes.
[00:01:06.720,275] &amp;lt;dbg&amp;gt; net_mqtt: client_write: (main): [0x21002f30]: Transport write complete.
[00:01:06.720,306] &amp;lt;dbg&amp;gt; net_mqtt: mqtt_subscribe: (main): [CID 0x21002f30]:[State 0x06]: &amp;lt;&amp;lt; result 0x00000000----------------------subscribe() with QoS1 OK
[00:01:06.720,336] &amp;lt;wrn&amp;gt; main: -----[MAIN] Success to subscribe sparkplug NCMD and DCMD: 0                   ------------------------But no Sub_ACK received
[00:01:06.720,336] &amp;lt;wrn&amp;gt; main: NetworkCore - Hello 5
[00:01:16.722,076] &amp;lt;wrn&amp;gt; sparkplugb: PUBLISH DEVICE DATA
[00:01:16.722,106] &amp;lt;dbg&amp;gt; net_mqtt: mqtt_publish: (main): [CID 0x21002f30]:[State 0x06]: &amp;gt;&amp;gt; Topic size 0x0000001f, Data size 0x00000054
[00:01:16.722,167] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_utf8_str: (main): &amp;gt;&amp;gt; str_size:00000021 cur:0x21003c7a, end:0x21003d75
[00:01:16.722,229] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint16: (main): &amp;gt;&amp;gt; val:001f cur:0x21003c7a, end:0x21003d75
[00:01:16.722,259] &amp;lt;dbg&amp;gt; net_mqtt_enc: mqtt_encode_fixed_header: (main): &amp;lt;&amp;lt; msg type:0x30 length:0x00000075
[00:01:16.722,320] &amp;lt;dbg&amp;gt; net_mqtt_enc: packet_length_encode: (main): &amp;gt;&amp;gt; length:0x00000075 cur:0, end:0
[00:01:16.722,351] &amp;lt;dbg&amp;gt; net_mqtt_enc: mqtt_encode_fixed_header: (main): Fixed header length = 02
[00:01:16.722,412] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint8: (main): &amp;gt;&amp;gt; val:30 cur:0x21003c78, end:0x21003d75
[00:01:16.722,442] &amp;lt;dbg&amp;gt; net_mqtt_enc: packet_length_encode: (main): &amp;gt;&amp;gt; length:0x00000075 cur:0x21003c79, end:0x21003d75
[00:01:16.722,473] &amp;lt;dbg&amp;gt; net_mqtt: client_write_msg: (main): [0x21002f30]: Transport writing message.
[00:01:16.725,067] &amp;lt;dbg&amp;gt; net_mqtt: client_write_msg: (main): [0x21002f30]: Transport write complete.
[00:01:16.725,097] &amp;lt;dbg&amp;gt; net_mqtt: mqtt_publish: (main): [CID 0x21002f30]:[State 0x06]: &amp;lt;&amp;lt; result 0x00000000  ----------------------The following publish is OK
[00:01:16.725,982] &amp;lt;wrn&amp;gt; main: NetworkCore - Hello 6                                                          --------------------but can&amp;#39;t receive the subscribed data
[00:01:26.727,722] &amp;lt;wrn&amp;gt; sparkplugb: PUBLISH DEVICE DATA
[00:01:26.727,752] &amp;lt;dbg&amp;gt; net_mqtt: mqtt_publish: (main): [CID 0x21002f30]:[State 0x06]: &amp;gt;&amp;gt; Topic size 0x0000001f, Data size 0x00000054
[00:01:26.727,844] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_utf8_str: (main): &amp;gt;&amp;gt; str_size:00000021 cur:0x21003c7a, end:0x21003d75
[00:01:26.727,874] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint16: (main): &amp;gt;&amp;gt; val:001f cur:0x21003c7a, end:0x21003d75
[00:01:26.727,905] &amp;lt;dbg&amp;gt; net_mqtt_enc: mqtt_encode_fixed_header: (main): &amp;lt;&amp;lt; msg type:0x30 length:0x00000075
[00:01:26.727,966] &amp;lt;dbg&amp;gt; net_mqtt_enc: packet_length_encode: (main): &amp;gt;&amp;gt; length:0x00000075 cur:0, end:0
[00:01:26.727,996] &amp;lt;dbg&amp;gt; net_mqtt_enc: mqtt_encode_fixed_header: (main): Fixed header length = 02
[00:01:26.728,027] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint8: (main): &amp;gt;&amp;gt; val:30 cur:0x21003c78, end:0x21003d75
[00:01:26.728,088] &amp;lt;dbg&amp;gt; net_mqtt_enc: packet_length_encode: (main): &amp;gt;&amp;gt; length:0x00000075 cur:0x21003c79, end:0x21003d75
[00:01:26.728,118] &amp;lt;dbg&amp;gt; net_mqtt: client_write_msg: (main): [0x21002f30]: Transport writing message.
[00:01:26.730,682] &amp;lt;dbg&amp;gt; net_mqtt: client_write_msg: (main): [0x21002f30]: Transport write complete.
[00:01:26.730,743] &amp;lt;dbg&amp;gt; net_mqtt: mqtt_publish: (main): [CID 0x21002f30]:[State 0x06]: &amp;lt;&amp;lt; result 0x00000000
[00:01:26.731,658] &amp;lt;wrn&amp;gt; main: NetworkCore - Hello 7
[00:01:36.733,398] &amp;lt;wrn&amp;gt; sparkplugb: PUBLISH DEVICE DATA
[00:01:36.733,428] &amp;lt;dbg&amp;gt; net_mqtt: mqtt_publish: (main): [CID 0x21002f30]:[State 0x06]: &amp;gt;&amp;gt; Topic size 0x0000001f, Data size 0x00000054
[00:01:36.733,520] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_utf8_str: (main): &amp;gt;&amp;gt; str_size:00000021 cur:0x21003c7a, end:0x21003d75
[00:01:36.733,551] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint16: (main): &amp;gt;&amp;gt; val:001f cur:0x21003c7a, end:0x21003d75
[00:01:36.733,581] &amp;lt;dbg&amp;gt; net_mqtt_enc: mqtt_encode_fixed_header: (main): &amp;lt;&amp;lt; msg type:0x30 length:0x00000075
[00:01:36.733,642] &amp;lt;dbg&amp;gt; net_mqtt_enc: packet_length_encode: (main): &amp;gt;&amp;gt; length:0x00000075 cur:0, end:0
[00:01:36.733,673] &amp;lt;dbg&amp;gt; net_mqtt_enc: mqtt_encode_fixed_header: (main): Fixed header length = 02
[00:01:36.733,703] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint8: (main): &amp;gt;&amp;gt; val:30 cur:0x21003c78, end:0x21003d75
[00:01:36.733,764] &amp;lt;dbg&amp;gt; net_mqtt_enc: packet_length_encode: (main): &amp;gt;&amp;gt; length:0x00000075 cur:0x21003c79, end:0x21003d75
[00:01:36.733,795] &amp;lt;dbg&amp;gt; net_mqtt: client_write_msg: (main): [0x21002f30]: Transport writing message.
[00:01:36.736,389] &amp;lt;dbg&amp;gt; net_mqtt: client_write_msg: (main): [0x21002f30]: Transport write complete.
[00:01:36.736,419] &amp;lt;dbg&amp;gt; net_mqtt: mqtt_publish: (main): [CID 0x21002f30]:[State 0x06]: &amp;lt;&amp;lt; result 0x00000000
[00:01:36.737,335] &amp;lt;wrn&amp;gt; main: NetworkCore - Hello 8
[00:01:46.739,074] &amp;lt;wrn&amp;gt; sparkplugb: PUBLISH DEVICE DATA
[00:01:46.739,105] &amp;lt;dbg&amp;gt; net_mqtt: mqtt_publish: (main): [CID 0x21002f30]:[State 0x06]: &amp;gt;&amp;gt; Topic size 0x0000001f, Data size 0x00000054
[00:01:46.739,196] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_utf8_str: (main): &amp;gt;&amp;gt; str_size:00000021 cur:0x21003c7a, end:0x21003d75
[00:01:46.739,227] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint16: (main): &amp;gt;&amp;gt; val:001f cur:0x21003c7a, end:0x21003d75
[00:01:46.739,257] &amp;lt;dbg&amp;gt; net_mqtt_enc: mqtt_encode_fixed_header: (main): &amp;lt;&amp;lt; msg type:0x30 length:0x00000075
[00:01:46.739,318] &amp;lt;dbg&amp;gt; net_mqtt_enc: packet_length_encode: (main): &amp;gt;&amp;gt; length:0x00000075 cur:0, end:0
[00:01:46.739,349] &amp;lt;dbg&amp;gt; net_mqtt_enc: mqtt_encode_fixed_header: (main): Fixed header length = 02
[00:01:46.739,410] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint8: (main): &amp;gt;&amp;gt; val:30 cur:0x21003c78, end:0x21003d75
[00:01:46.739,440] &amp;lt;dbg&amp;gt; net_mqtt_enc: packet_length_encode: (main): &amp;gt;&amp;gt; length:0x00000075 cur:0x21003c79, end:0x21003d75
[00:01:46.739,471] &amp;lt;dbg&amp;gt; net_mqtt: client_write_msg: (main): [0x21002f30]: Transport writing message.
[00:01:46.741,973] &amp;lt;dbg&amp;gt; net_mqtt: client_write_msg: (main): [0x21002f30]: Transport write complete.
[00:01:46.742,004] &amp;lt;dbg&amp;gt; net_mqtt: mqtt_publish: (main): [CID 0x21002f30]:[State 0x06]: &amp;lt;&amp;lt; result 0x00000000
[00:01:46.742,919] &amp;lt;wrn&amp;gt; main: NetworkCore - Hello 9
[00:01:56.744,628] &amp;lt;wrn&amp;gt; sparkplugb: PUBLISH DEVICE DATA
[00:01:56.744,659] &amp;lt;dbg&amp;gt; net_mqtt: mqtt_publish: (main): [CID 0x21002f30]:[State 0x06]: &amp;gt;&amp;gt; Topic size 0x0000001f, Data size 0x00000054
[00:01:56.744,750] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_utf8_str: (main): &amp;gt;&amp;gt; str_size:00000021 cur:0x21003c7a, end:0x21003d75
[00:01:56.744,781] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint16: (main): &amp;gt;&amp;gt; val:001f cur:0x21003c7a, end:0x21003d75
[00:01:56.744,812] &amp;lt;dbg&amp;gt; net_mqtt_enc: mqtt_encode_fixed_header: (main): &amp;lt;&amp;lt; msg type:0x30 length:0x00000075
[00:01:56.744,873] &amp;lt;dbg&amp;gt; net_mqtt_enc: packet_length_encode: (main): &amp;gt;&amp;gt; length:0x00000075 cur:0, end:0
[00:01:56.744,903] &amp;lt;dbg&amp;gt; net_mqtt_enc: mqtt_encode_fixed_header: (main): Fixed header length = 02
[00:01:56.744,934] &amp;lt;dbg&amp;gt; net_mqtt_enc: pack_uint8: (main): &amp;gt;&amp;gt; val:30 cur:0x21003c78, end:0x21003d75
[00:01:56.744,995] &amp;lt;dbg&amp;gt; net_mqtt_enc: packet_length_encode: (main): &amp;gt;&amp;gt; length:0x00000075 cur:0x21003c79, end:0x21003d75
[00:01:56.745,025] &amp;lt;dbg&amp;gt; net_mqtt: client_write_msg: (main): [0x21002f30]: Transport writing message.
[00:01:56.747,619] &amp;lt;dbg&amp;gt; net_mqtt: client_write_msg: (main): [0x21002f30]: Transport write complete.
[00:01:56.747,650] &amp;lt;dbg&amp;gt; net_mqtt: mqtt_publish: (main): [CID 0x21002f30]:[State 0x06]: &amp;lt;&amp;lt; result 0x00000000&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Could you help give some hints? Thank you very much!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Yanpeng Wu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: MQTT subscribe failed</title><link>https://devzone.nordicsemi.com/thread/468106?ContentTypeID=1</link><pubDate>Thu, 08 Feb 2024 15:09:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a75d001-b92b-4415-8c37-76081273d081</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Update: I connected to&amp;nbsp;test.mosquitto.org:1884 with the public username/password, no TLS.&lt;/p&gt;
&lt;p&gt;I attached the&amp;nbsp;subscription and MQTT_event_handler code here,&amp;nbsp;in case some errors were introduced here (The code is following the mqtt publisher sample).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/subscription-and-event-handler-code.c"&gt;devzone.nordicsemi.com/.../subscription-and-event-handler-code.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: MQTT subscribe failed</title><link>https://devzone.nordicsemi.com/thread/468102?ContentTypeID=1</link><pubDate>Thu, 08 Feb 2024 14:58:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ebb1271-f6be-4e06-b391-c509f9627d40</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;Thank you for your reply. Before MQTT-Connection, I did some modem-test by sending UDP packets. Then init and connect MQTT, nothing MQTT data&amp;nbsp;sent before MQTT-Connection. &lt;br /&gt;Maybe the error is from the socket or modem driver, just as you said. Could you tell me how to enable logging in IP stack? thank you very much.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I tried three scenarios, and the results showed it was closely related to the modem(I used ublox SARA-R4 modem and the cellular modem driver, and communication works well), I summarized here:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;strong&gt;1. If not do the subscription, can connect and publish messages successfully forever.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;strong&gt;2. If do the subscription in the MQTT_EVT_CONNACK(just after connect success)&lt;/strong&gt;, it showed that the calling mqtt_subscribe() success, bu no MQTT_EVT_SUBACK received.&lt;br /&gt; and modem dropped one or two frames, then received a MQTT_EVT_DISCONNECT, trace as below:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:26.106,201] &amp;lt;inf&amp;gt; mqtttest: mqtt_connect OK, rc is 0
[00:00:26.410,339] &amp;lt;inf&amp;gt; mqtttest: do zsock_poll() 2s, ret = 1
[00:00:26.410,491] &amp;lt;err&amp;gt; mqtttest: -----[mqtt_evt_handler]
[00:00:26.410,522] &amp;lt;inf&amp;gt; mqtttest: -----[MQTT_EVT_CONNACK] MQTT client connected!
[00:00:26.415,863] &amp;lt;err&amp;gt; mqtttest: -----[MQTT_EVT_CONNACK] Success to subscribe sparkplug NCMD and DCMD: 0  //------just call mqtt_subscribe() success, but no MQTT_EVT_SUBACK received
[00:00:26.415,924] &amp;lt;wrn&amp;gt; sparkplugb: PUBLISH NODE BIRTH
[00:00:26.431,457] &amp;lt;wrn&amp;gt; sparkplugb: PUBLISH DEVICE BIRTH
[00:00:26.441,314] &amp;lt;wrn&amp;gt; sparkplugb: PUBLISH DEVICE DATA
[00:00:26.673,339] &amp;lt;wrn&amp;gt; modem_ppp: Dropped frame, no net_pkt available                         //------modem dropped frame
[00:00:32.954,010] &amp;lt;wrn&amp;gt; modem_ppp: Dropped frame, no net_pkt available                         //------modem dropped frame
[00:00:36.930,206] &amp;lt;err&amp;gt; mqtttest: -----[mqtt_evt_handler]
[00:00:36.930,236] &amp;lt;inf&amp;gt; mqtttest: -----[MQTT_EVT_DISCONNECT] MQTT client disconnected -105     //------received MQTT_EVT_DISCONNECT, MQTT session was closed.
[00:00:36.931,182] &amp;lt;wrn&amp;gt; main: NetworkCore - Hello 1                                            //------The error code is ENOBUFS 105	/* No buffer space available */
[00:00:46.932,922] &amp;lt;wrn&amp;gt; sparkplugb: PUBLISH DEVICE DATA
[00:00:46.934,020] &amp;lt;wrn&amp;gt; main: NetworkCore - Hello 2&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3. If not do the subscription in the MQTT_EVT_CONNACK, after 20 successful publishing, then do the subscription,&lt;/strong&gt; no MQTT_EVT_SUBACK received.&lt;br /&gt; and modem dropped some frames, then received an MQTT_EVT_DISCONNECT, trace as below:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:03:17.068,511] &amp;lt;wrn&amp;gt; sparkplugb: PUBLISH DEVICE DATA
[00:03:17.075,256] &amp;lt;wrn&amp;gt; main: NetworkCore - Hello 18
[00:03:27.077,026] &amp;lt;wrn&amp;gt; sparkplugb: PUBLISH DEVICE DATA
[00:03:27.083,374] &amp;lt;wrn&amp;gt; main: NetworkCore - Hello 19
[00:03:37.085,113] &amp;lt;wrn&amp;gt; sparkplugb: PUBLISH DEVICE DATA
[00:03:37.090,270] &amp;lt;err&amp;gt; main: -----[MAIN] Success to subscribe sparkplug NCMD and DCMD: 0    //------just call mqtt_subscribe() success, but no MQTT_EVT_SUBACK received
[00:03:37.090,301] &amp;lt;wrn&amp;gt; main: NetworkCore - Hello 20                                         //------these 20 publishing message can be received by other client.
[00:03:37.817,718] &amp;lt;wrn&amp;gt; modem_ppp: Dropped frame, no net_pkt available                       //------modem start to drop some frames
[00:03:47.092,071] &amp;lt;wrn&amp;gt; sparkplugb: PUBLISH DEVICE DATA
[00:03:47.100,219] &amp;lt;wrn&amp;gt; main: NetworkCore - Hello 21
[00:03:47.534,118] &amp;lt;wrn&amp;gt; modem_ppp: Dropped frame, no net_pkt available
[00:03:47.534,393] &amp;lt;wrn&amp;gt; modem_ppp: Dropped frame, no net_pkt available
[00:03:48.049,682] &amp;lt;wrn&amp;gt; modem_ppp: Dropped frame, no net_pkt available
[00:03:48.691,741] &amp;lt;wrn&amp;gt; modem_ppp: Dropped frame, no net_pkt available
[00:03:49.570,770] &amp;lt;wrn&amp;gt; modem_ppp: Dropped frame, no net_pkt available
[00:03:50.929,687] &amp;lt;wrn&amp;gt; modem_ppp: Dropped frame, no net_pkt available
[00:03:52.939,666] &amp;lt;wrn&amp;gt; modem_ppp: Dropped frame, no net_pkt available
[00:03:55.969,879] &amp;lt;wrn&amp;gt; modem_ppp: Dropped frame, no net_pkt available
[00:03:57.102,020] &amp;lt;wrn&amp;gt; sparkplugb: PUBLISH DEVICE DATA                                      //------after that, the following publishing message can not be received by other client.
[00:03:57.103,210] &amp;lt;wrn&amp;gt; main: NetworkCore - Hello 22                      
[00:04:00.630,584] &amp;lt;wrn&amp;gt; modem_ppp: Dropped frame, no net_pkt available
[00:04:07.104,919] &amp;lt;wrn&amp;gt; sparkplugb: PUBLISH DEVICE DATA
[00:04:07.106,079] &amp;lt;wrn&amp;gt; main: NetworkCore - Hello 23
[00:04:07.697,479] &amp;lt;wrn&amp;gt; modem_ppp: Dropped frame, no net_pkt available
[00:04:17.107,818] &amp;lt;wrn&amp;gt; sparkplugb: PUBLISH DEVICE DATA
[00:04:17.108,123] &amp;lt;err&amp;gt; mqtttest: -----[mqtt_evt_handler]
[00:04:17.108,154] &amp;lt;inf&amp;gt; mqtttest: -----[MQTT_EVT_DISCONNECT] MQTT client disconnected -128   //------received MQTT_EVT_DISCONNECT, MQTT session was closed.
[00:04:17.109,161] &amp;lt;wrn&amp;gt; main: NetworkCore - Hello 24                                         //------BUT the error code is ENOTCONN 128  /* Socket is not connected */
[00:04:27.110,900] &amp;lt;wrn&amp;gt; sparkplugb: PUBLISH DEVICE DATA
[00:04:27.111,999] &amp;lt;wrn&amp;gt; main: NetworkCore - Hello 25
[00:04:37.113,830] &amp;lt;wrn&amp;gt; sparkplugb: PUBLISH DEVICE DATA
[00:04:37.114,929] &amp;lt;wrn&amp;gt; main: NetworkCore - Hello 26
[00:04:47.116,668] &amp;lt;wrn&amp;gt; sparkplugb: PUBLISH DEVICE DATA&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: MQTT subscribe failed</title><link>https://devzone.nordicsemi.com/thread/468092?ContentTypeID=1</link><pubDate>Thu, 08 Feb 2024 14:25:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac8daaee-4296-4f4a-9a62-739cd26c8de0</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;What happens before you get disconnected? E.g. are you sending data to or from the device?&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t find anywhere in the mqtt library that returns -ENOBUFS, so I think the error is coming from somewhere else, such as you rmodem driver.&lt;/p&gt;
&lt;p&gt;Can you enable logging further down in the IP stack to see if we can find where the error comes from?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: MQTT subscribe failed</title><link>https://devzone.nordicsemi.com/thread/468008?ContentTypeID=1</link><pubDate>Thu, 08 Feb 2024 08:36:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bfa8d85-3ec3-4ab1-8513-23be2b427896</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;div&gt;
&lt;div&gt;
&lt;div&gt;Update: for the error code&amp;nbsp;ENOBUFS 105 /* No buffer space available */, I tried to increase the mqtt client&amp;nbsp;rx_buffer and&amp;nbsp;tx_buffer big enough, but still with the same error.&lt;br /&gt;&lt;br /&gt;Should I increase the socket buffer CONFIG_NET_SOCKETS_SERVICE_STACK_SIZE?&lt;br /&gt;The socket session was closed by receiving MQTT_EVT_DISCONNECT, is the session closed by mqtt server or local mqtt stack?&lt;br /&gt;&lt;br /&gt; Thank you very much.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: MQTT subscribe failed</title><link>https://devzone.nordicsemi.com/thread/467934?ContentTypeID=1</link><pubDate>Wed, 07 Feb 2024 13:32:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4421f2f6-0497-4d37-a8a2-8129fb8d169a</guid><dc:creator>Yanpengwu</dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;Thanks for your guidance.&amp;nbsp;It&amp;#39;s true, the subscription is successful when I set the .message_id = sys_rand32_get(). The sub_param created as a local variable and on the stack is no problem, and it can work well(I guess the mqtt API uses &amp;#39;pass by value&amp;#39; or be called synchronously), I can publish success when the subscription fails.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;But a new problem&amp;nbsp;occurred after the successful subscription, I received an MQTT_EVT_DISCONNEC and the evt-&amp;gt;result is -105, the trace is:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:49.091,186] &amp;lt;inf&amp;gt; mqtttest: -----[MQTT_EVT_DISCONNECT] MQTT client disconnected -105
           //#define ENOBUFS 105 /* No buffer space available */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Why just subscribing to two topics will cause &amp;#39;No buffer space available&amp;#39; and lose the MQTT connection? Looking forward to your comments.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Yanpeng Wu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: MQTT subscribe failed</title><link>https://devzone.nordicsemi.com/thread/467903?ContentTypeID=1</link><pubDate>Wed, 07 Feb 2024 12:04:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b01c3e28-a786-46bd-8ac9-79e03abaa6d0</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The message ID is not permitted to be 0 by the specification.&lt;/p&gt;
&lt;p&gt;In addition, you might run into a problem where sub_param is used after it is deallocated, as it is currently just allocated on the stack.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>