Questions tagged [coap]

CoAP is an application protocol designed for constrained devices, designed to easily translate to HTTP.

224 questions
2
votes
0 answers

How to implement DTLS in contiki os and integrate it with coap protocol

https://code.google.com/archive/p/contiki-dtls/ "checked this link but facing problems in integrating as there is no readme here" https://github.com/renzoe/dtls-contiki/wiki how to use tinyDTLS in contiki os, can someone explain steps for the same.…
SagarBhanu
  • 89
  • 8
2
votes
1 answer

How to add a Resource or Endpoint in a CoAP server program Golang

https://github.com/dustin/go-coap I am using the above library for Building a Server-Client programs in Golang. How can we add a Resource or Endpoint on Server Side and write a Handler in-specific to that endpoint. And also how to Publish data to…
2
votes
0 answers

DTLS support over Arduino Ethernet UDP or WIfi UDP

I have implemented COAP protocol over EthernetUDP and WIFIUDP as well. I now need to add Datagram level transport layer security (DTLS). Does EthernetUdp or WifiUdp support DTLS ?? Thanks, Jyoti Raj Sharma
Jyoti Raj Sharma
  • 91
  • 1
  • 3
  • 10
2
votes
1 answer

C:Having some troubles with a pointer to uint8_t[]

I'm working with microcontrollers and got following working code: .h file const static uint8_t state0[] = "Off"; const static uint8_t state1[] = "ROMLoad"; const static uint8_t state2[] = "RAMLoad"; const static uint8_t state3[] =…
Whitekang
  • 55
  • 9
2
votes
2 answers

CoAP server could not be started

when I run HelloWorldServer.java of californium(examples), I got this error. How do I fix this? I run this in eclipse.. Mar 08, 2016 8:30:01 PM org.eclipse.californium.core.network.config.NetworkConfig createStandardWithFile INFO: Loading standard…
2
votes
2 answers

How to send firmware package from LWM2M Leshan server to LWM2M Wakaama client?

I have a LwM2M Wakaama client working with a Leshan server. When I try to send a huge hexbinary string via the write option on Package resource for Firmware update object 5, I get the following error message on the client side: "Block1 NOT…
VKalley
  • 21
  • 4
2
votes
0 answers

Proxy tool for CoAP integrated with DTLS

How to view the request/response for CoAP protocol integrated with DTLS. Copper (firefox plugin) tool works fine with CoAP protocol without DTLS. for e.g. coap://localhost:5683 request/response can be easily viewed and modified. When DTLS is…
alok chandra
  • 93
  • 1
  • 6
2
votes
3 answers

Security for Coap messages

Is there any way in which the messages that are send by COAP over UDP packets can be secured ? Any open source projects that I can implement. This message exchange is with a server and the client would be an embedded device. So the cryptographic…
cache
  • 113
  • 1
  • 11
1
vote
0 answers

Send NGSIv2 data to Orion Context Broker

I explain the problem. I need to register a client to an Orion context broker. The client (OMALWM2M) is connected to the IoT Agent which acts as a bridge with NGSI. My problem is that when I connect to localhost: 1026 / v2 / entities there is no…
Antonio
  • 11
  • 3
1
vote
1 answer

How do I do a task after waiting 10 seconds in Java?

It's the first time I use Java for a project and I need to do this: send a CoAP POST request to turn on an actuator wait 10 seconds send a CoAP POST request to turn off the actuator. I'm using this code inside the method I wrote that has to…
Mo0oon9898
  • 11
  • 2
1
vote
2 answers

Asyncio.run gives RuntimeError loop is closed

When trying to create simple coap server with asyncronous function and asyncio.run it return Event loop is closed. Code below: import aiocoap import aiocoap.resource as resource class CoAPServer(resource.Resource): def __init__(self) -> None: …
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

Can I connect CoAPthon (CoAP of Python) to node-coap(CoAP for nodejs)?

I am working on a raspberry pi project where I run python script and I want to send the sensor data from that script to my nodejs server. I am trying to connect a CoAP server in python script to my client at the node server. The libraries used are…
Vatsa
  • 11
  • 1
1
vote
1 answer

Unable to get payload response when payload length size is greater than 1000K.(Coap)

I am using Coapthon and Helperclient libraries to get, put, post the data. I am using below mentioned code line to get the payload. it is working fine without any issue if pauload length size is not more than 1000. response =…
Sumit
  • 161
  • 4
  • 15
1
vote
1 answer

Fiware Lightweight M2M agent: how to send measures from devices

I am investigating how to use the Fiware's Lightweight M2M agent. I read: https://fiware-iotagent-lwm2m.readthedocs.io/en/latest/deviceProvisioning/index.html and this other helped so much: Setting up LWM2M device communicates with IDAS But I…
1 2
3
14 15