Questions tagged [libcoap]

used for question concerning the libcoap library that implements the CoAP protocol for IoT applications. This tag should be used for questions about the data structs, functions, and other queries about how to use the libcoap library. For questions concerning the CoAP protocol in general or other library implementations of CoAP use the coap tag.

libcoap is a library written in C which provides an implementation of the CoAP - Constrained Application Protocol IoT telemetry protocol.

10 questions
9
votes
2 answers

CoAP and DTLS integration

I have implementation of CoAP (libcoap), and implementation of DTLS (tinyDTLS). How can I make integration CoAP (libcoap) with DTLS (tinyDTLS)? I will be grateful for the any advice.
Puzzle
  • 173
  • 2
  • 6
1
vote
1 answer

How to communicate using libcoap over USB in linux?

I would like to communicate over USB using COAP protocol. I am currently planning to use libcoap, it has examples but it is based on UDP server-client. If I want to use USB, what must be done? Thanks
add
  • 21
  • 1
1
vote
1 answer

Contiki-ng with libcoap

I have Ubuntu 16.04LTS and contiki-ng installed. Trying to start a multicast root (provided by the cooja multicast example) in a terminal i faced the error "Failed to open tun device". The same error appeared with sink node but it solved using…
jim
  • 71
  • 6
1
vote
1 answer

What is the best practice to deploy CoAP-DTLS server that can support multiple PSK identity/secret sets?

We're estimating the practicability to replace our conventional HTTPS/RESTful over cellular network (4G-LTE) with CoAP/DTLS over NB-IoT, to prolong the battery life of remote devices. The IoT application we've deployed only takes a tiny proportion…
RichardLiu
  • 1,902
  • 1
  • 19
  • 18
1
vote
1 answer

In libcoap coap server GET response handler how to access query additions to URI?

I am working with the libcoap-dev-1 library under Raspbian with a Raspberry Pi using the library with a simple client and simple server to implement the CoAP protocol. I have a working client and a working server and am now trying to modify the…
Richard Chambers
  • 16,643
  • 4
  • 81
  • 106
1
vote
1 answer

CoAP: Group similar resources under one

I am using libcoap implementation of CoAP for one of my IOT application. Query: I want to group more than one resource under one topic. For example, I want to group 'current time' resource and 'date' resource under 'TIME' resource. On GET request to…
0
votes
1 answer

How to multicast FOTA with CoAP

I use CoAP ( write by C) to FOTA multicast but It timeout. I use unicast it still work done. p/s:Sorry I use English don't well. link source lib-coap: https://github.com/obgm/libcoap image error: enter image description here How to fix it. Thanks. I…
0
votes
1 answer

How to dynamically create ressource with attribute?

Context I'm trying to dynamically create and access multiple CoAP ressources on the same server. Basically what is would like is something like get coap://ip/ressource/* and get all the data of ressource/1 ressource/n Linked subject I found the…
Damezumari
  • 17
  • 6
0
votes
1 answer

Regarding CoAP Client proxy funtionality

I'm developing CoAP Client proxy funtionailty. But, I'm confused the spec and how it works. What I'm confused as the following: Proxy-URI option 1.1 Which coap server can be connected if Proxy-URI option is setup? 1.2 Should CoAP request message…
Jang
  • 150
  • 1
  • 2
  • 10
0
votes
1 answer

Specify cipher suite libcoap

I am writing a small CoAP client/server program, over DTLS, in C, using the libcoap library. Analyzing the traffic with Wireshark reveals that the server chooses the TLS_DHE_PSK_WITH_CHACHA20_POLY1305_SHA256. I want to change cipher suite, for…
Noxet
  • 236
  • 4
  • 16