<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CoAP Client for LabVIEW? in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/4253260#M1237726</link>
    <description>&lt;P&gt;Thanks to @rolfk for taking the time to explain some of the burdens about sharing code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While our company have dropped LabVIEW for several years now I just stripped the relevant code about CoAP that we have about that time and published it here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/maovidal/VA_CoAP_LabVIEW" target="_blank"&gt;https://github.com/maovidal/VA_CoAP_LabVIEW&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I haven't checked it, but even if it does not work it may serve others to see some details about CoAP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Fri, 02 Sep 2022 14:36:13 GMT</pubDate>
    <dc:creator>MVidal</dc:creator>
    <dc:date>2022-09-02T14:36:13Z</dc:date>
    <item>
      <title>CoAP Client for LabVIEW?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/3201829#M928429</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to be able to acquire data from&amp;nbsp;diverse sensors that implement the CoAP protocol:&amp;nbsp;&lt;A href="http://coap.technology" target="_blank"&gt;http://coap.technology&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It seems there is no native implementation in LabVIEW for this, but there are plenty for other platforms.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess&amp;nbsp;one solution can be to deploy one those implementations and access them as a gateway from LabVIEW&amp;nbsp;(ie a Phyton based one), but it will require to install and maintain additional software.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I have your pointers on what can I&amp;nbsp;do or where can I look to implement a client for CoAP devices in LabVIEW?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Quite appart, if someone is interested I&amp;nbsp;have found this nice implementation of IBM's IoT services based on MQTT written in LabVIEW: &lt;A href="https://developer.ibm.com/recipes/tutorials/national-instruments-labview-for-the-iot-foundation" target="_blank"&gt;https://developer.ibm.com/recipes/tutorials/national-instruments-labview-for-the-iot-foundation&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you guys!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 04:05:13 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/3201829#M928429</guid>
      <dc:creator>MVidal</dc:creator>
      <dc:date>2015-10-09T04:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: CoAP Client for LabVIEW?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/3202604#M928726</link>
      <description>&lt;P&gt;From the looks of it, it's a HTTP REST-based protocol, so you can just use the HTTP Client VIs to make requests and get the response back. The url/headers/content of the request will change according to the specification but you might not need to implement the low-level HTTP functions. If you do, the HTTP protocol isn't too complicated to implement as a wrapper of the TCP/IP VIs.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2015 11:14:11 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/3202604#M928726</guid>
      <dc:creator>Sam_Sharp</dc:creator>
      <dc:date>2015-10-12T11:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: CoAP Client for LabVIEW?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/3203354#M929047</link>
      <description>&lt;P&gt;Sam,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your kind response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm commited to make it work despite of my huge ignorance on this subject.&amp;nbsp;Actually, now I'm headed in the direction you mention using the HTTPVIEWHTTPClient.lvlib.vi library in LabVIEW 2014 SP1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However I haven't been able to sucessfully get a valid response from a public test server for CoAP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First of all, I have to mention that CoAP is UDP based, not TCP. I'm wondering if those libraries can be used...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, here it is my setup:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/586b88844d890e21836d96374662a3000b8be880/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31373334363069383034303444433345383931344345322f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="VeryBasicTest.png" title="VeryBasicTest.png" /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;Using the URL coap://coap.me:5683/hello it should return "world" (I have tested this with &lt;/SPAN&gt;&lt;SPAN style="line-height: 15px;"&gt;Copper (Cu), an &lt;/SPAN&gt;&lt;SPAN style="line-height: 15px;"&gt;a&lt;/SPAN&gt;&lt;SPAN style="line-height: 15px;"&gt;dd-on for Firefox which is a CoAP client&lt;/SPAN&gt;&lt;SPAN style="line-height: 15px;"&gt;). Instead, I get the LabVIEW error code 363524 that states that the protocol is not supported.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If instead, I fire the&amp;nbsp;URL &lt;A href="http://coap.me/hello," target="_blank"&gt;http://coap.me/hello,&lt;/A&gt; I get the response&amp;nbsp;&lt;SPAN&gt;[:error, "Not Found"] which is okay, as that is the same response I get from any web browser. Using the same with the port 5683, I mean: &lt;A href="http://coap.me:5683/hello" target="_blank"&gt;http://coap.me:5683/hello&lt;/A&gt; it provides a 363500 LabVIEW error, that states&amp;nbsp;it does not get response from the server, which is what I expected, the server is not configured to listen at that port http requests...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently, I'm trying to figure it out how to work with the UDP functions, but in the meantime, if you have an additional input, I really would appreciate it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 18:18:21 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/3203354#M929047</guid>
      <dc:creator>MVidal</dc:creator>
      <dc:date>2015-10-13T18:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: CoAP Client for LabVIEW?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/3203472#M929084</link>
      <description>&lt;P&gt;Just an update:&amp;nbsp;I concluded that the way to go is to use the UDP palette.&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;Currently I have been able to get a valid response from the test server after I placed a basic "header"&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: 15px;"&gt;according to the protocol.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;Now I'm building on top of that.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Later I'll share my findings about this in case anyone else is interested.&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 22:43:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/3203472#M929084</guid>
      <dc:creator>MVidal</dc:creator>
      <dc:date>2015-10-13T22:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: CoAP Client for LabVIEW?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/3265473#M952904</link>
      <description>&lt;P&gt;Hi MVidal,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you successfully designed the CoAP client in LabVIEW?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a similar problem - I need to design a CoAP server. &amp;nbsp;I wonder if it will be too different from creating a CoAP client?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 10:35:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/3265473#M952904</guid>
      <dc:creator>JJideani</dc:creator>
      <dc:date>2016-03-10T10:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: CoAP Client for LabVIEW?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/3265616#M952950</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yeah I was able to build it. Actually it was quite straight forward to write&amp;nbsp;the client after reading the specification: &lt;A href="http://tools.ietf.org/html/rfc7252" target="_blank"&gt;http://tools.ietf.org/html/rfc7252&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Altough I only implemented the parts that are useful in my case, which are quite basic and may not be a fully compliant one&amp;nbsp;(ie. some Methods/Messages not implemented, No observer, etc), but it won't be that hard&amp;nbsp;to add them. What I wasn't able to solve was the support of ipv6, as LabVIEW does not offer it, but it is ok in ipv4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sorry I don't have info about the server implementation. I haven't read about it. Though for your reference I found this link quite useful during&amp;nbsp;my task: &lt;A href="http://trac.tools.ietf.org/wg/core/trac/wiki/PlugFest" target="_blank"&gt;http://trac.tools.ietf.org/wg/core/trac/wiki/PlugFest&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck with your project!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 15:38:26 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/3265616#M952950</guid>
      <dc:creator>MVidal</dc:creator>
      <dc:date>2016-03-10T15:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: CoAP Client for LabVIEW?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/3565951#M998019</link>
      <description>&lt;P&gt;Can you share an example .vi of you implementation? Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 21:50:00 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/3565951#M998019</guid>
      <dc:creator>Gustav0</dc:creator>
      <dc:date>2017-01-05T21:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: CoAP Client for LabVIEW?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/4234434#M1230127</link>
      <description>&lt;P&gt;This replies with ACK:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="coap.png" style="width: 999px;"&gt;&lt;img src="https://ip1.i.lithium.com/7d9d61145b5adbb41a32c455635f67db93a900b5/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33303337313469433833393537443643313437433630302f696d6167652d73697a652f6c617267653f763d76322670783d393939" role="button" title="coap.png" alt="coap.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 11:54:33 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/4234434#M1230127</guid>
      <dc:creator>bienieck</dc:creator>
      <dc:date>2022-06-02T11:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: CoAP Client for LabVIEW?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/4252230#M1237335</link>
      <description>&lt;P&gt;So, you are looking for help, but you are not willing to share?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 13:40:54 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/4252230#M1237335</guid>
      <dc:creator>Martin_Sokolov</dc:creator>
      <dc:date>2022-08-29T13:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: CoAP Client for LabVIEW?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/4252234#M1237337</link>
      <description>&lt;P&gt;@&lt;A class="lia-link-navigation lia-page-link lia-user-name-link" href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/688259" target="_blank"&gt;&lt;SPAN class=""&gt;Martin_Sokolov&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;What do you mean? Did you notice the original post was about 7 years ago and that I have posted later about my findings the issues I have encountered?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 13:53:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/4252234#M1237337</guid>
      <dc:creator>MVidal</dc:creator>
      <dc:date>2022-08-29T13:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: CoAP Client for LabVIEW?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/4252292#M1237364</link>
      <description>&lt;P&gt;One of the members asked you to share an example .vi of your implementation, but you didn't.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 17:41:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/4252292#M1237364</guid>
      <dc:creator>Martin_Sokolov</dc:creator>
      <dc:date>2022-08-29T17:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: CoAP Client for LabVIEW?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/4252361#M1237390</link>
      <description>&lt;P&gt;Calm down everybody. If anyone is willing or able to provide his VIs is their own decision. Even if you initially asked for help and then develop your own solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So asking for a ready (or not) made library is ok but expecting that it is also posted is quite a different story. Reasons not to post are many:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-You work for an employer and the VIs are part of your normal work: He legally owns your work and needs to be fine with you posting his property.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- The library works for your specific problem but is rather limited, hacky or otherwise not to feel proud about: Posting it either gets no reactions, which feels unsatisfactory, or bad reactions from entitled users who feel everything should be provided free of charge and in perfect functioning condition, implementing all obscure features too. Or they want to use it, but have not even basic knowledge and keep pestering you with basic questions about your library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- You spend hours of work and don’t feel like giving that away for free.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- You developed it as part of a project for a client that was on the base that the customer pays for the whole development fully and in exchange gets full rights on the source code. In that case you don’t own the VIs anymore and need permission from that client to use them anywhere else, including posting them here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Each of these reason is perfectly valid.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please point out your submissions to the community that you posted so far, that shows that you are not just expecting others to post their work but also do your own part in providing the fruits of your work to others?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 06:28:03 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/4252361#M1237390</guid>
      <dc:creator>rolfk</dc:creator>
      <dc:date>2022-08-30T06:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: CoAP Client for LabVIEW?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/4252716#M1237541</link>
      <description>&lt;P&gt;Is it&amp;nbsp;possible to import python code with CoAP in LabView?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 17:08:40 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/4252716#M1237541</guid>
      <dc:creator>Martin_Sokolov</dc:creator>
      <dc:date>2022-08-31T17:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: CoAP Client for LabVIEW?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/4252832#M1237575</link>
      <description>&lt;P&gt;Depends what you mean with import.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Generally importing any code into native LabVIEW VIs is not really an option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Calling other code is definitely an option though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- precompiled shared libraries can be called with the Call Library Node, Python code can be compiled into shared libraries with the right tools, but I'm not sure why anyone would want to do that.&lt;/P&gt;
&lt;P&gt;-&amp;nbsp; .Net assemblies (for .Net Framework, not yet .Net Core) can be called with the LabVIEW .Net functions&lt;/P&gt;
&lt;P&gt;- Python code can be called through the new Python Node in LabVIEW 2020 and newer. It requires an installed and supported Python system on the computer, to which the Python script is handed down for execution&lt;/P&gt;
&lt;P&gt;- Matlab code can the called through the Matlab Script Node and also requires an installed Matlab system on the machine.&lt;/P&gt;
&lt;P&gt;- Lua code can be called through Lua for LabVIEW&lt;/P&gt;
&lt;P&gt;- There are a lot of other options like that&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So there are definitely many options to use other programming languages. But I wouldn't call any of them importing the code into LabVIEW.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 06:20:06 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/4252832#M1237575</guid>
      <dc:creator>rolfk</dc:creator>
      <dc:date>2022-09-01T06:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: CoAP Client for LabVIEW?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/4253074#M1237669</link>
      <description>&lt;P&gt;So, how to fix this CoAP problem?&lt;BR /&gt;Is the best option to combine HTTP + UDP?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My idea is to send sensor data to cloud via different protocols (HTTP, MQTT, CoAP...) and to compare&amp;nbsp;the delay.&lt;BR /&gt;Can someone help me with that?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 20:11:03 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/4253074#M1237669</guid>
      <dc:creator>Martin_Sokolov</dc:creator>
      <dc:date>2022-09-01T20:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: CoAP Client for LabVIEW?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/4253084#M1237670</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/688259"&gt;@Martin_Sokolov&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;So, how to fix this CoAP problem?&lt;BR /&gt;Is the best option to combine HTTP + UDP?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My idea is to send sensor data to cloud via different protocols (HTTP, MQTT, CoAP...) and to compare&amp;nbsp;the delay.&lt;BR /&gt;Can someone help me with that?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;All of these protocols are in principle TCP/IP and/or UDP based and could be implemented natively in LabVIEW. I did that in a long ago past for HTTP and that even worked, but it is quite an effort nowadays (my implementation was pre HTTP 1.0 times). The other two are not that different to implement but each is quite an effort to do from scratch. CoAP being a lightweight protocol for resource constrained devices would seem simple enough to actually implement in such a way. But you may have to get your own hands dirty and do the work yourself. Basic MQTT shouldn’t be very hard to implement either but a fully functional protocol stack can get very challenging. HTTP is similar, to just contact a web server for simple GET calls is fairly easy, but a fully functioning HTTP stack is very complicated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I would have to do it for a real project I would likely use binary shared libraries such as libcurl (HTTP), libmqtt and libcoap and call them with the Call Library Node. But Call Library Nodes are not everyones hobby and can be challenging to use if you are not a seasoned C programmer.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;The more easy approach if you only need to support Windows would be to find out a relevant .Net assembly for each protocol and interface to it with the LabVIEW .Net Nodes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For MQTT there exist actually some libraries for LabVIEW that are freely available and interface to one of the several open source shared libraries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The HTTP Client VIs are under the hood based on libcurl and work for most use cases. Unfortunately NI completely shielded the entire libcurl interface behind a wrapper of their own. If the library works for you that is good. If it doesn’t because your device uses non standard HTTP methods or some other involved HTTP speciality, there is no chance to hack it into this library yourself.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 20:47:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/4253084#M1237670</guid>
      <dc:creator>rolfk</dc:creator>
      <dc:date>2022-09-01T20:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: CoAP Client for LabVIEW?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/4253260#M1237726</link>
      <description>&lt;P&gt;Thanks to @rolfk for taking the time to explain some of the burdens about sharing code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While our company have dropped LabVIEW for several years now I just stripped the relevant code about CoAP that we have about that time and published it here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/maovidal/VA_CoAP_LabVIEW" target="_blank"&gt;https://github.com/maovidal/VA_CoAP_LabVIEW&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I haven't checked it, but even if it does not work it may serve others to see some details about CoAP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 14:36:13 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/CoAP-Client-for-LabVIEW/m-p/4253260#M1237726</guid>
      <dc:creator>MVidal</dc:creator>
      <dc:date>2022-09-02T14:36:13Z</dc:date>
    </item>
  </channel>
</rss>

