<?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>change sdk v2.6.1 to sdk v2.7.0 after websock not able connect with server</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119383/change-sdk-v2-6-1-to-sdk-v2-7-0-after-websock-not-able-connect-with-server</link><description>In SDK v2.6.1, commenting out the following code in websocket.c allows successful connection to the WebSocket. However, in SDK v2.7.0, even after commenting out the same code, I am still unable to connect to the WebSocket. 
 if ( ! ( ctx -&amp;gt; all_received</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Mar 2025 14:33:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119383/change-sdk-v2-6-1-to-sdk-v2-7-0-after-websock-not-able-connect-with-server" /><item><title>RE: change sdk v2.6.1 to sdk v2.7.0 after websock not able connect with server</title><link>https://devzone.nordicsemi.com/thread/526020?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2025 14:33:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:924fe022-438a-416f-be30-e46183c7a51a</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The websocket library was converted to use zsock API. &lt;/p&gt;
&lt;p&gt;The nRF Connect SDK v2.6.1 uses &lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/v3.5.99-ncs1-1"&gt;v3.5.99-ncs1-1&lt;/a&gt; of Zephyr, and v2.7.0 uses &lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/v3.6.99-ncs2"&gt;v3.6.99-ncs2&lt;/a&gt; of Zephyr. So you can compare this two tags to see all the changes.&lt;/p&gt;
&lt;p&gt;I would recommend looking at the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/zephyr/samples/net/sockets/websocket_client/README.html"&gt;WebSocket Client&lt;/a&gt; sample in Zephyr.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: change sdk v2.6.1 to sdk v2.7.0 after websock not able connect with server</title><link>https://devzone.nordicsemi.com/thread/525854?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2025 03:42:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ec10151-13ad-49a0-abdb-e3c5de40233c</guid><dc:creator>ChiragBhavsar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p data-start="0" data-end="137"&gt;We tried connecting to &lt;code data-start="23" data-end="43"&gt;echo.websocket.org&lt;/code&gt; and were able to establish a connection using SDK v2.6.1, but it does not work with v2.7.0.&lt;/p&gt;
&lt;p data-start="139" data-end="287" data-is-last-node="" data-is-only-node=""&gt;We are developing a product for our client, who uses a personal server. We want to connect to this server using WebSockets and receive data from it.&lt;/p&gt;
&lt;p data-start="139" data-end="287" data-is-last-node="" data-is-only-node=""&gt;&lt;/p&gt;
&lt;p data-start="139" data-end="287" data-is-last-node="" data-is-only-node=""&gt;can you please ask me is there any change in websocket driver side in sdk v2.7.0 ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: change sdk v2.6.1 to sdk v2.7.0 after websock not able connect with server</title><link>https://devzone.nordicsemi.com/thread/525742?ContentTypeID=1</link><pubDate>Tue, 04 Mar 2025 13:53:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a65d6376-f834-4d4e-ab5c-eb0903fa68d5</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You connect to echo.thingy.rocks and not a dedicated websocket. Have you tried connecting to a server using websocket instead?&lt;/p&gt;
&lt;p&gt;Is there a reason you want to use a websocket instead of a regular socket?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: change sdk v2.6.1 to sdk v2.7.0 after websock not able connect with server</title><link>https://devzone.nordicsemi.com/thread/525479?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 11:09:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:baee72aa-85f1-4084-a577-12a0068cc348</guid><dc:creator>ChiragBhavsar</dc:creator><description>&lt;p&gt;[00:00:00.502,746] &amp;lt;inf&amp;gt; fs_nvs: 2 Sectors of 4096 bytes&lt;br /&gt;[00:00:00.502,746] &amp;lt;inf&amp;gt; fs_nvs: alloc wra: 0, fd0&lt;br /&gt;[00:00:00.502,777] &amp;lt;inf&amp;gt; fs_nvs: data wra: 0, c8&lt;br /&gt;*** Booting nRF Connect SDK v3.5.99-ncs1-1 ***&lt;br /&gt;[00:00:02.055,969] &amp;lt;inf&amp;gt; wifi_mgmt_ext: Connection requested&lt;br /&gt;[00:00:02.056,732] &amp;lt;inf&amp;gt; Lesson5_Exercise1: Connecting to Wi-Fi&lt;br /&gt;[00:00:04.606,048] &amp;lt;inf&amp;gt; wifi_mgmt_ext: Connection requested&lt;br /&gt;[00:00:07.159,393] &amp;lt;inf&amp;gt; wifi_mgmt_ext: Connection requested&lt;br /&gt;[00:00:09.713,409] &amp;lt;inf&amp;gt; wifi_mgmt_ext: Connection requested&lt;br /&gt;[00:00:12.267,883] &amp;lt;inf&amp;gt; wifi_mgmt_ext: Connection requested&lt;br /&gt;[00:00:14.834,533] &amp;lt;inf&amp;gt; wifi_mgmt_ext: Connection requested&lt;br /&gt;[00:00:17.400,695] &amp;lt;inf&amp;gt; wifi_mgmt_ext: Connection requested&lt;br /&gt;[00:00:19.947,631] &amp;lt;inf&amp;gt; wifi_mgmt_ext: Connection requested&lt;br /&gt;[00:00:22.501,220] &amp;lt;inf&amp;gt; wifi_mgmt_ext: Connection requested&lt;br /&gt;[00:00:25.055,206] &amp;lt;inf&amp;gt; wifi_mgmt_ext: Connection requested&lt;br /&gt;[00:00:27.609,893] &amp;lt;inf&amp;gt; wifi_mgmt_ext: Connection requested&lt;br /&gt;[00:00:30.181,518] &amp;lt;inf&amp;gt; wifi_mgmt_ext: Connection requested&lt;br /&gt;[00:00:30.264,404] &amp;lt;inf&amp;gt; Lesson5_Exercise1: Network connected&lt;br /&gt;[00:00:32.203,094] &amp;lt;inf&amp;gt; Lesson5_Exercise1: IPv4 address of HTTP server found 54.240.174.114&lt;br /&gt;[00:00:33.456,909] &amp;lt;inf&amp;gt; Lesson5_Exercise1: Connected to server&lt;br /&gt;[00:00:33.456,939] &amp;lt;inf&amp;gt; Lesson5_Exercise1: HTTP POST request&lt;br /&gt;[00:00:33.571,350] &amp;lt;inf&amp;gt; Lesson5_Exercise1: Response status: Created&lt;br /&gt;[00:00:33.571,380] &amp;lt;inf&amp;gt; Lesson5_Exercise1: Successfully acquired client ID: /fb269045-2f73-4068-8064-b227e8a6cf70&lt;br /&gt;[00:00:33.571,411] &amp;lt;inf&amp;gt; Lesson5_Exercise1: Closing socket: 9&lt;br /&gt;[00:00:36.434,722] &amp;lt;err&amp;gt; Lesson5_Exercise1: Cannot connect to IPv4 remote (-116)&lt;br /&gt;[00:00:36.435,150] &amp;lt;err&amp;gt; Lesson5_Exercise1: Cannot connect to echo.thingy.rocks:80&lt;br /&gt;[00:00:36.435,241] &amp;lt;err&amp;gt; Lesson5_Exercise1: No IPv4 or IPv6 connectivity&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: change sdk v2.6.1 to sdk v2.7.0 after websock not able connect with server</title><link>https://devzone.nordicsemi.com/thread/525466?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 10:16:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96a72805-c43b-4564-bc72-1ab8773e3e8f</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please share the full logs from the device.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: change sdk v2.6.1 to sdk v2.7.0 after websock not able connect with server</title><link>https://devzone.nordicsemi.com/thread/525429?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 04:43:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab479c17-c727-44f5-ba4c-0a6674f9138f</guid><dc:creator>ChiragBhavsar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;websock4&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;websocket_connect&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;sock1&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;req&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;timeout&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&amp;quot;IPv4&amp;quot;&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;span&gt; //SYS_FOREVER_MS&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span&gt;websock4&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;) {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;LOG_ERR&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;quot;Cannot connect to &lt;/span&gt;&lt;span&gt;%s&lt;/span&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt;%d&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;WEB_HOSTNAME&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;WEB_PORT&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;return&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;//close(sock1);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; }&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;i used&amp;nbsp;&lt;span&gt;websocket_connect and i get the error,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;i check sdk v2.7.0 release not but i did&amp;#39;t get any thing related to websocket,&lt;br /&gt;i have require to do any change in prj.conf?&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: change sdk v2.6.1 to sdk v2.7.0 after websock not able connect with server</title><link>https://devzone.nordicsemi.com/thread/525052?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2025 12:47:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78eea76f-951d-4f2d-8157-d7d47708835b</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you using an SDK sample, or is it a custom project? &lt;/p&gt;
&lt;p&gt;Please share the device logs.&lt;/p&gt;
&lt;p&gt;I recommend fixing the issue causing the WebSocket handshake to fail rather than commenting out the check.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>