Questions tagged [coap]

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

203 questions
3
votes
1 answer

How to send a GET request from a coap server to a device running outside of local network?

We have a device running inside of a local network, And a californium server is running on a separate machine outside of the network. the sever IP is public Ip. the requirement is that when server recieves a request from the device , the server…
Vijay Kasina
  • 134
  • 1
  • 8
3
votes
1 answer

How can I transform HTTP to CoAP by JCoAP?

I use the project JCoAP to do HTTP/CoAP transform. but I don't know how to use it. I have a HTTP client and a CoAP server,I need the Proxy to transform HTTP to CoAP, it's seem that "JCoAP" project have achieve it.But I have no idea the detail to…
3
votes
1 answer

how to group testcases in CoAP conformance test suite

I am writing a conformance test suite for Constrained Application Protocol (CoAP) based on TTCN-3. Now I've already known the protocol. CoAP is similar to HTTP. They are both application layer protocols. There are CoAP client and CoAP server, they…
Ernest
  • 830
  • 7
  • 9
2
votes
2 answers

Is it possible to transfer a file through CoAP?

Recently, I am doing a project and I am trying to transfer a json file to the CoAP server. I put some random values in key:value pairs such as: { key1: value1, key2: [value21, value22, value23] } Questions: CoAP is pretty much similar to…
testuser
  • 751
  • 1
  • 10
  • 28
2
votes
3 answers

Is there a way for authorization and authentication in CoAP on application layer?

Is there a way for authentication and authorizaion in CoAP without DTLS and on the application layer?
user10624701
2
votes
1 answer

Why does JMeter always show me a 0 ms latency when using 3rd party COAP Plugin?

I'm testing an application running on a Raspberry PI via Apache JMeter. Everything works fine but JMeter always return 0 ms latency, no matter how many clients concurrently probe the Raspberry in the time unit. At beginning I thought this behaviour…
Luigi2405
  • 427
  • 1
  • 5
  • 11
2
votes
2 answers

Receiving Observed object changes on Leshan server

I am building a simple prototype based upon the leshan-server-demo included with the repo. I'm attempting to receive updates from objects that have been observed. Packet captures show that the updates are making their way to the server, but I'm…
C Russo
  • 43
  • 7
2
votes
1 answer

How to get an IP address from a receiving CoAP package in C#?

In C#, I'm trying to get the IP address of the CoAP client. Is this even possible? I've tried looking in the exchange object I receive, but I can't seem to find the IP address. Client class Program { private static string _port = "5683"; …
Sfynx
  • 81
  • 3
2
votes
1 answer

Can Vue.js use node-coap library?

Currently I'm developing an application using vue.js (MEVN) I need to implement CoAP and OPC-UA client in vue.js Unfortunately, I can't find a suitable client library for vue.js But, I did found the library for node.js. So, this pop up a question to…
Lyn
  • 336
  • 1
  • 12
2
votes
1 answer

CoAP blockwise transfer on NodeJS

How to create a CoAP block-wise transfer on NodeJS? I use node-coap module. I send a request to: var options = { host: 'coap.me', port: 5683, pathname: '/test', method: 'PUT', }; I also do this: req.setOption('Block2',…
Tryam
  • 185
  • 9
2
votes
1 answer

CoAP on Apache, CoAP Web Service

I am working with CoAP protocol on IoT but also I need a web service. I implemented the web service on Apache with HTTP protocol and a Proxy that converts CoAP-HTTP request and responses. But I don't want to use the Proxy to convert CoAP-HTTP. I…
2
votes
1 answer

How to transform CoAP to HTTP?

I searched but did not found any example showing on how to convert CoAP request or response to HTTP request. Basically what I want to do is CoAP request POST some data from device to a server which will translate it and do HTTP request POST to other…
Fang
  • 754
  • 1
  • 11
  • 29
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
  • 91
  • 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
1
2
3
13 14