CoAP is an application protocol designed for constrained devices, designed to easily translate to HTTP.
Questions tagged [coap]
224 questions
0
votes
1 answer
dynamically adding a resource to a python coap server with coapthon library
I am trying to build a coap server, in which I can add a new resource without the need to stop the server, recode it and restart .my server is suppossed to host two types of resources, "sensors(Sens-Me)" and "Actuators(Act-Me)" . I want that if I…

Pratik Kumar
- 2,211
- 1
- 17
- 41
0
votes
1 answer
Retrieve the observed value from Californium CoAP client
I am trying to implement a CoAP client based on Californium. I make this client observing to a resource:
public static class CoapCl{
double val = 0;
CoapClient client = new CoapClient("coap://localhost/Ultrasonic");
CoapObserveRelation…

dondon
- 105
- 1
- 1
- 10
0
votes
1 answer
Coap.Net - Starting
I'm currently trying to start with CoAP in C#. The library I'm using is CoAP.Net (→ https://github.com/smeshlink/CoAP.NET).
Unfortunately, I didn't even succeed with the example published in the "Quick Start"-Section on GitHub.
My Server Code:
class…

MWeb
- 41
- 1
- 8
0
votes
0 answers
ETag option not visualized correctly on the console
I'm using the library node-coap, and I have coded a simple coap client, that send get request to a local coap server, in particular the PlugTest server of the californium framework, this is the code of the client:
var req = {
…

SimCor
- 190
- 17
0
votes
1 answer
how to register a new option with coap.registerOption
I'm using node-coap in order to send data to a coap server, I need to use a custom option in the packet so I'm running this code:
var req = {
hostname:"localhost",
method:"PUT",
pathname:"create1",
}
var coapReq = coap.request(req)
…

SimCor
- 190
- 17
0
votes
0 answers
How to replace my code having HTTP with CoAP for embedded systems
We are planning to use Apache libraries with support of OSGI framework in our project. As target server for our application is embedded system with constrained resources so we need to modify protocol layer in such way to use CoAP protocol(specific…

Harsh
- 1
- 1
0
votes
1 answer
How to add payload to coap request node-coap
I'm using node-coap (https://github.com/mcollina/node-coap) to send Coap packets, now I'm trying to do post or put requests with payload, but I haven't understand how to add payload to request. What method or property I have to use to insert the…

SimCor
- 190
- 17
0
votes
1 answer
Can CoAP be used when preserving data order is required?
I am trying to transmit sensor data from an IoT device via CoAP using node-coap. The order of the data, as it arrives to the CoAP server, is important to me. I can not find a way to preserve the sequence of data, even when using the confirmable…

rynop
- 50,086
- 26
- 101
- 112
0
votes
1 answer
Determine total CoAP message size
I have both a CoAP Server and Client I wrote in Java with the Californium library. I can get resources from the server both through the client or with Firefox with the Copper(Cu) extension. I want to get the total size of the response i get from the…

svdotbe
- 168
- 1
- 3
- 16
0
votes
1 answer
How I can set a size of message (PDU) for the Californium server?
How I can set a size of PDU dynamically for Californium server?
Context:
1) I have a device with implemented coap-client functionality.
This device is constrained by RAM, about 200 free bytes for rx/tx buffers.
In the request the device can sent a…

Serge Maslyakov
- 1,410
- 1
- 17
- 23
0
votes
0 answers
network analysis in eclipse ide of java Client Server Program
I have client and Server program written in java. I want to calculate packet delivery ration, throughput, RTT and other network related parameter for network analysis of client and server. I am using Eclipse neon IDE.
I also want to verify how many…
0
votes
0 answers
IoT/CoAP node discovery packet
How exactly should I discover all nodes that do something useful in my network?
Most CoAP documentation I've seen talks about protocol when connection is already established, but how to know where the endpoints are?
I found OIC specification which…

anatoly techtonik
- 19,847
- 9
- 124
- 140
0
votes
1 answer
ARM MBED CoAP example mot opening port
I have succesfully built the CoAP protocol example for ARM mbed (https://developer.mbed.org/teams/sandbox/code/coap-example/file/0681e205d0e9/) on a K64F board. It comes out of the box, except for the server name (coap.me) changed to an internal IP…

jordi
- 1,157
- 1
- 13
- 37
0
votes
1 answer
arm mbed os CoAP missing ns_types.h
I am trying to build the CoAP protocol example for ARM mbed (https://developer.mbed.org/teams/sandbox/code/coap-example/file/0681e205d0e9/) on a K64F board. I am getting this error on compiling:
Compile [ 0.3%]: sn_coap_header_check.c
[Fatal Error]…

jordi
- 1,157
- 1
- 13
- 37
0
votes
1 answer
How much data can hold CoAP in single message?
What is the limit of size in sending data in CoAP for single message?

sai
- 419
- 2
- 7
- 17