<?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>Need to add id(derived by me) in URL of NFC module</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68049/need-to-add-id-derived-by-me-in-url-of-nfc-module</link><description>Hello, 
 i am using nRF52832 Development kit. 
 and segger embedded studio for debugging 
 i have just started with NFC module. i run the NFC example &amp;quot;record_url&amp;quot; and it is working fine 
 Now i want to modify this example and add the id( which is derived</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Nov 2020 13:15:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68049/need-to-add-id-derived-by-me-in-url-of-nfc-module" /><item><title>RE: Need to add id(derived by me) in URL of NFC module</title><link>https://devzone.nordicsemi.com/thread/279731?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 13:15:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e83f3ada-2552-4ec0-ae68-45b4c7651f85</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I encourage you to actually try and see the result.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Initializing it as a string will add the null character &amp;#39;\0&amp;#39; at the end of the array, which again adds this to your URL. See&lt;a href="https://www.tutorialspoint.com/cprogramming/c_strings.htm"&gt; this link &lt;/a&gt;for more on the difference between a a string and char in C.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In short: use the latter method.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to add id(derived by me) in URL of NFC module</title><link>https://devzone.nordicsemi.com/thread/279637?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 08:36:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06942b7c-8950-4212-bbb2-f1f68553e4b5</guid><dc:creator>AKanade</dc:creator><description>&lt;p&gt;can i initialize my unsigned char buffer like this&amp;nbsp;&lt;br /&gt;static unsigned char[30] = &amp;quot;myurl.com/&amp;quot;&lt;br /&gt;&lt;br /&gt;instead of that&amp;nbsp;&lt;br /&gt;static unsigned char[30] = { &amp;#39;m&amp;#39;, &amp;#39;y&amp;#39;, &amp;#39;u&amp;#39;, &amp;#39;r&amp;#39;, &amp;#39;l&amp;#39;, &amp;#39;.&amp;#39;, &amp;#39;c&amp;#39;, &amp;#39;o&amp;#39;, &amp;#39;m&amp;#39; }&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to add id(derived by me) in URL of NFC module</title><link>https://devzone.nordicsemi.com/thread/279633?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 08:17:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fa39da7-4448-4e51-96e0-337f607e5fef</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;uint8_t is just a typdef for unsigned char, it&amp;#39;s effectively the same. You can therefore pass a unsigned char buffer instead.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to add id(derived by me) in URL of NFC module</title><link>https://devzone.nordicsemi.com/thread/279616?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 05:05:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1421475b-32c5-433d-a45e-80e6868c6721</guid><dc:creator>AKanade</dc:creator><description>&lt;p&gt;or can i do like this, will take the char buffer,&lt;br /&gt;static char url[len] = &amp;quot;myurl&amp;quot;&lt;/p&gt;
&lt;p&gt;and when pass this char buffer to&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;nfc_uri_msg_encode(), will simply type cast the buffer like this&amp;nbsp;&lt;br /&gt;&lt;br /&gt;( uint8_t * )url&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to add id(derived by me) in URL of NFC module</title><link>https://devzone.nordicsemi.com/thread/279615?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 04:55:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa94f0bb-455b-4c50-8396-9c791c61ee04</guid><dc:creator>AKanade</dc:creator><description>&lt;p&gt;can i take the char buffer instead of uint8_t buffer and pass it to nfc_uri_msg_encode ?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to add id(derived by me) in URL of NFC module</title><link>https://devzone.nordicsemi.com/thread/278814?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2020 14:28:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c205ea9-4f06-48fc-bdcd-80b454021fcc</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes this is possible.&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;You would have to take in the data that you want to add and format it correctly to a&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;uint8_t buffer. The buffer is then passed to&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;nfc_uri_msg_encode() to set the correct prefix and finally to&amp;nbsp;nfc_t2t_payload_set().&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;regards&lt;/div&gt;
&lt;div&gt;Jared&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to add id(derived by me) in URL of NFC module</title><link>https://devzone.nordicsemi.com/thread/278704?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2020 05:11:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:701bce06-3c2e-4aa9-aaac-fd094de375bb</guid><dc:creator>AKanade</dc:creator><description>&lt;p&gt;i don&amp;#39;t want to give the hard coded id at the coding stage. i want to give this id in url at the time of initialization( run time of the device )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>