CoAP is an application protocol designed for constrained devices, designed to easily translate to HTTP.
Questions tagged [coap]
224 questions
0
votes
1 answer
OMA firmware update using Leshan server: Where to save the files?
I'm quite new to the world of the IOT (protocols). I want to update some devices remotely (they will be installed about 8000km away from my working place). I have found out that LWM2M would fit to my scope.
Because the internet connection there is…

Mr Pink
- 71
- 7
0
votes
1 answer
Holding CoAP response until UDP response is received using Erbium REST on Contiki
I want to do a CoAP request to an Erbium REST mote in which I first ask information from another mote to use in the response.
For this I command the REST mote to send a UDP message to the other mote. This mote will return a response with the…

Martin
- 11
- 2
0
votes
1 answer
"OSError: [Errno 24] Too many open files:" with sockets from aiocoap context.request()
Hello i am working on a raspberry PI which is supposed to send continuously data from sensors connected to this PI so here is my script :
import logging
import asyncio
from grovepi import*
import time
import json
from aiocoap import…

FrozzenFinger
- 1,482
- 2
- 14
- 35
0
votes
0 answers
A nullpointerException occur when i send CoAP message to OM2M
I've tried to send a CoAP message to IN-CSE in OM2M but IN-CSE printed NullpointerException like the picture I've uploaded.
I solved the problem by modifying CoAPServer class in OM2M source code.
I think the problem is "to=coap://localhost/~/in-cse"…

Smalldragon
- 1
- 2
0
votes
1 answer
How to run CoAP (er-rest-example) on CC2650 sensortag without Border Router?
I want to run simple client-server of er-rest-example on CC2650 Sensortags without border router. Purpose is to test coap transactions.
All the details in readme and wiki involves border router. Any help for running coap without border router will…

HI_205
- 21
- 2
0
votes
0 answers
Clarification on CoAp implementation for contikiOS
I'm trying to send packets over CoAP between two TI 2650 sensortags. I used the logic from the "er-rest-example" provided by contiki 3.0, that is:
coap_init_message(request, COAP_TYPE_CON, COAP_POST, 0);
coap_set_header_uri_path(request,…

N. Plu
- 11
- 3
0
votes
1 answer
How to signal finish reading or writing to Stream without dispose
A protocol library sends complete messages (partial messages are not directly supported as part of the spec). In order to send large data through the protocol, another spec introduces the concept of segmenting the message body into blocks. The…

Roman Vaughan
- 41
- 2
0
votes
1 answer
EJB handling in CoAP server?
We have our application backend deployed on wildfly-8, using EJB (Enterprise Java Bean) technology and it's catering HTTP requests. Now we need to support CoAP requests too, with using our same backend. Unfortunately wildfly has no CoAP support.
We…

Siddharth Trikha
- 2,648
- 8
- 57
- 101
0
votes
1 answer
How to assign anonymous function variables to class method variables?
I'm trying to implement communication with coap server by using coap package. My goal is to get response (in coap.request() response event handler) and then pass it to other variables and functions.
Event: 'response'
function (response) {…

Lycopersicum
- 529
- 1
- 6
- 17
0
votes
1 answer
How to register LwM2M client with node-coap package?
I'm trying to emulate LwM2M client nodes with node.js coap package. I have LwM2M server running and listening to port 5555 at my Raspberry Pi 3.
Currently all I've achieved is sending an UDP packet to lo (loopback) interface. (However it's…

Lycopersicum
- 529
- 1
- 6
- 17
0
votes
1 answer
Sending a json payload from a CoAP server as return value to GET method using CoAPthon library
I am using CoAPthon to create a server, it should return a json payload whenever the get method is invoked, below is my code snippet:
from coapthon.resources.resource import Resource
from coapthon.server.coap import CoAP
import json
class…

Pratik Kumar
- 2,211
- 1
- 17
- 41
0
votes
1 answer
CoAP PUT and POST method differentiation
Can anyone help how to differentiate the incoming message structure of PUT and POST methods in CoAP protocol?
Or should we do some work in server c++ files ???

HariRHK
- 11
- 5
0
votes
0 answers
CoAP protocol implementation
How to make a generic code for multiple feeds or connected devices to a CoAP client, such that we can control them via the same function with the incoming parameters.
Like in the GET method of CoAP it sends Get-feedname/device name, where we can…

HariRHK
- 11
- 5
0
votes
1 answer
CoAP support for twitter heron
I'm working on IoT project where I receive datastream in CoAP protocol.
I want to process the data in Heron by doing some transformations on top of it.
Is it possible to integrate CoAP protocol objects to heron?

tourist
- 4,165
- 6
- 25
- 47
0
votes
1 answer
using floating point in CC2538 based RE-Mote board for CoAP Server with Contiki OS
I am using RE-Mote Development Board along with Contiki-OS. I am interfacing it with Adafruit BNO055 Absolute Orientation Sensor.
I want particularly:
the Accelerometer Data in floating point precision.
the Euler Angles in floating point…

Shan-Desai
- 3,101
- 3
- 46
- 89