# CoAP library status?

**URL:** <https://community.particle.io/t/coap-library-status/64089>\
**Category:** Libraries\
**Created:** [February 27, 2023, 10:28pm UTC](https://community.particle.io/t/coap-library-status/64089 "2023-02-27T22:28:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gusgonnet](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/gusgonnet/32/27491_2.png) [@gusgonnet](https://community.particle.io/u/gusgonnet)\
**Post date:** [February 27, 2023, 10:28pm UTC](https://community.particle.io/t/coap-library-status/64089/1 "2023-02-27T22:28:06Z")

</div>

Hey @hirotakaster ,

seems like you are the master of the alternative protocols we can use on the Particle platform.

I found out that you have an Arduino library that implements CoAP [here](https://github.com/hirotakaster/CoAP-simple-library).  
I see there is a link to a Particle library, but I read that community members were not able to compile or use it.

What is the status of that library, in your opinion?  
I wonder if in some cases this library can be a good option to [the MQTT library](https://github.com/hirotakaster/MQTT-TLS), that you also know very well 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![hirotakaster](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/hirotakaster/32/2223_2.png) [@hirotakaster](https://community.particle.io/u/hirotakaster)\
**Post date:** [February 28, 2023, 3:13pm UTC](https://community.particle.io/t/coap-library-status/64089/2 "2023-02-28T15:13:50Z")

</div>

Hi @gusgonnet ,

Thanks for letting me know.  
I didn’t maintain the CoAP library because I didn’t think anyone was using it, and Particle API is based CoAP protocol so I think CoAP specified lib is no-needed 😅  
But I got to know that some developer try/want to use it, Okay I will maintain(compile/test) CoAP library for latest firmware.

Thank you.

---

<div class="post-metadata">

**Author:** ![hirotakaster](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/hirotakaster/32/2223_2.png) [@hirotakaster](https://community.particle.io/u/hirotakaster)\
**Post date:** [March 5, 2023, 9:37am UTC](https://community.particle.io/t/coap-library-status/64089/3 "2023-03-05T09:37:12Z")

</div>

Hi, @mm6

> [@CoAP library not working](https://community.particle.io/t/coap-library-not-working/62880):
>
> Hello, I am working a book on IoT and I would like to include a working CoAP example using the Particle Web IDE and the Particle Argon or Photon 2. I have tried to use the community library but was not successful. The library is here: Has anyone gotten this to work? If not, do you know where I might find a simple CoAP client for the Argon or Photon 2. My plan is to use a Node-RED coap node for the server side. Thanks in advance, MIke

Now I update the coap library to 0.2.5 version.  
Here is "How to build & test the CoAP community library on Argon(firmware 5.3.0)"

[![](https://img.youtube.com/vi/8hEcqxZmtM8/maxresdefault.jpg "Compile&flash CoAP community library for the Particle Platform") ](https://www.youtube.com/watch?v=8hEcqxZmtM8)

Thank you.

---

<div class="post-metadata">

**Author:** ![gusgonnet](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/gusgonnet/32/27491_2.png) [@gusgonnet](https://community.particle.io/u/gusgonnet)\
**Post date:** [March 5, 2023, 1:38pm UTC](https://community.particle.io/t/coap-library-status/64089/4 "2023-03-05T13:38:04Z")

</div>

Outstanding work! Thank you @hirotakaster

---

<div class="post-metadata">

**Author:** ![gusgonnet](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/gusgonnet/32/27491_2.png) [@gusgonnet](https://community.particle.io/u/gusgonnet)\
**Post date:** [March 5, 2023, 9:54pm UTC](https://community.particle.io/t/coap-library-status/64089/5 "2023-03-05T21:54:47Z")

</div>

Hi @mm6 @UMD @DVDBE ,  
you expressed interest in this CoAP library in the past (from what I can see in the community posts).  
FYI then.

---

<div class="post-metadata">

**Author:** ![UMD](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/umd/32/5850_2.png) [@UMD](https://community.particle.io/u/UMD)\
**Post date:** [March 7, 2023, 11:28pm UTC](https://community.particle.io/t/coap-library-status/64089/6 "2023-03-07T23:28:08Z")

</div>

Thanks @gusgonnet and of course, @hirotakaster!

We were interested in using COAP direct to our own web service for IOT transactions to reduce turnaround time (our use case has a , leaving the Particle channel for device management (firmware upgrades and heart beats).

I envisage a problem though - code size - we have not got much left…

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/3/2/3291e3c9351789fe8620ae5bcec8d3fec67ff221.png) [@system](https://community.particle.io/u/system)\
**Post date:** [May 6, 2023, 11:28pm UTC](https://community.particle.io/t/coap-library-status/64089/7 "2023-05-06T23:28:26Z")

</div>

Closed on May 6, 2023, 11:28pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
