Questions tagged [coap]

The Constrained Application Protocol (CoAP) is a specialised web transfer protocol for use with constrained nodes and constrained networks in the Internet of Things. The protocol is designed for machine-to-machine (M2M) applications such as smart energy and building automation. Use this tag for questions related to implementing, testing and deciding whether to use CoAP over other protocols.

The Constrained Application Protocol (CoAP) is a specialized web transfer protocol for use with constrained nodes and constrained networks in the Internet of Things. The protocol is designed for machine-to-machine (M2M) applications such as smart energy and building automation.

CoAP is simple enough to implement from scratch for a simple application. For applications where that is not desirable, generic implementations are becoming available for a variety of platforms. Many of these implementations stay private, but some are published with liberal open-source licenses such as the Apache 2.0 or the MIT license.

12 questions
26
votes
2 answers

Is CoAP still used for IoT devices?

I did a prototype project for work a few years ago that utilized the Constrained Application Protocol (CoAP) for communicating with an Arduino board over a mesh network, but we put the brakes on the project due to a serious lack of security in our…
Jarren Long
  • 365
  • 2
  • 10
17
votes
1 answer

Are there any devices with open-source protocols over Wi-Fi?

I know how to program IoT using Arduino; but I want some ready made portable IoT devices that do not need any programming at device side. Just I want to buy and add these devices to the network (after some configuration) and (by using documentation…
Shahrzad
  • 319
  • 1
  • 6
12
votes
1 answer

Non-IP device Communication Protocols

I have a question about Non-IP device communication. From my research, I learnt CoAP and DDS can be used for Device-to-Device communication. MQTT is useful for Device-to-Gateway or Device-to-Service or Cloud. My question is, how can a non-IP device…
Creed
  • 167
  • 5
10
votes
1 answer

Does CoAP depend on IEEE 802.15.4?

In the CoAP specification, it is implied that IEEE 802.15.4 can be used in conjunction with CoAP. Is this a requirement or can CoAP also be used with other OSI layer 1, 2 protocols such as IEEE 802.11, BLE or LTE/5G/etc?
J. Doe
  • 103
  • 4
8
votes
2 answers

Does CoAP have a lower footprint than MQTT?

I recently read a Quora question about whether CoAP or MQTT is more lightweight, but the answers don't seem particularly satisfying and all contradict each other: the top answer says MQTT takes fewer resources, and another below that says CoAP is…
Aurora0001
  • 18,520
  • 13
  • 55
  • 169
5
votes
2 answers

What is the library to be used to implement CoAP in ESP8266?

I am using Arduino IDE to program my ESP8266. I would like to send data from one ESP8266 module to other. So I would like to use CoAP for this communication. Is there any standard or good library to implement CoAP in ESP8266?
4
votes
1 answer

LWM2M Bootstrap Factory versus Client

In the process of building a device that will utilise LWM2M protocol. Referring to the protocol specification here we have made a good stab at laying out the uplink and downlink packet specification. One of the remaining to do items is to figure…
scott_lotus
  • 151
  • 6
4
votes
1 answer

How to convert messages between CoAP and MQTT protocols?

I am a master student and my topic is about making protocol conversion among IoT communication protocols for example between CoAP and MQTT in order to make the devices that use MQTT protocol to communicate with the devices that use CoAP…
user6820
  • 41
  • 2
4
votes
0 answers

How to turn a router into CoAP server or MQTT broker

Can we turn a router to a MQTT broker or CoAP server? or can we just take additional service from the router by installing CoAP or MQTT broker on it, probably in Java. The router can be powerful as Linksys WRT1200AC (1.3 GHz Dual Core with 512MB RAM…
Shahrzad
  • 319
  • 1
  • 6
2
votes
1 answer

Scalability: CoAP vs. MQTT-SN

Which of these protocols is better in scalability? In terms of security, QoS and LLN are only small differences. It would even say, they are very similar to each other. But how is the performance in terms of transmission style? Is there a relevant…
1
vote
2 answers

Usage of Constrained Application Protocol (CoAP) in eastern european countries/russia and china

By serendipity I checked the usage of the CoAP via Shodan and to my surprise there is a extreme inbalance between its usage in eastern European countries/China/Russia and the rest of the world, e.g. USA ~300 to Russia ~300000. Is there an…
Kitano
  • 23
  • 3
1
vote
1 answer

CoAP protocol using californium java library

I am working with CoAP californium library using java and my problem is that I want to get the requested resource from client in the main function of server here .. public static void main(String[] args) { // TODO Auto-generated method stub …