Contiki-OS CoAP protocol and CoRE link implementation

0 votes
So, I have a question concerning the implementation of CoAP protocol and CoRE link format, in Contiki-OS.

Consider a Contiki device shares several sensors such as temperature, humidity, solar panel voltage, battery voltage, etc.

A client can access these resources with their respective URLs and the maximum number allowed observers by default is 3 which can obviously be increased by creating an observer for each resource separately.

But my question is if there is a better way to do this like a mechanism enabling combining several periodic resources in one observer?

Any help is appreciated.

Thanks in advance.
Jan 21, 2019 in IoT (Internet of Things) by Shubham
• 13,490 points

edited Jan 21, 2019 by Shubham 1,368 views

1 answer to this question.

0 votes

I don't think there's a standard way to do this. You could add another URL returning all the sensors but that's a terrible solution as well. What you could do actually, is simply override the default maximum observers setting. As a matter of fact, the observe draft doesn't say anything about a maximum number of observers, you can set one to be sure that your device doesn't crash due to memory allocation.

answered Jan 21, 2019 by Upasana
• 8,620 points

Related Questions In IoT (Internet of Things)

0 votes
1 answer

MQTT and CoAP Sensors and Actuators

For CoAP: Every 6LowPAN sensor mote has ...READ MORE

answered Oct 1, 2018 in IoT (Internet of Things) by Annie97
• 2,160 points
914 views
0 votes
1 answer

Why are oBIX and CoAP required together?

In IOT, CoAP is used as a ...READ MORE

answered Oct 9, 2018 in IoT (Internet of Things) by Annie97
• 2,160 points
900 views
0 votes
1 answer
0 votes
0 answers

Eclipse Californium CoAP wildcard as url path

I'm working on a CoAP app using ...READ MORE

Jul 19, 2018 in IoT (Internet of Things) by Matt
• 2,270 points
650 views
0 votes
1 answer

Sending CoAP requests using Python

It can be done using a library ...READ MORE

answered Aug 24, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
2,560 views
0 votes
1 answer

integrating CoAP and DTLS

Tested with development version 9184a75a21; $ git clone https://github.com/obgm/libcoap ...READ MORE

answered Sep 5, 2018 in IoT (Internet of Things) by lady technopath

edited Sep 5, 2018 by Vardhan 2,121 views
0 votes
1 answer

Differenciation between HTTP and COAP?

The industry plan is to improve HTTP ...READ MORE

answered Sep 6, 2018 in IoT (Internet of Things) by Annie97
• 2,160 points
2,228 views
0 votes
1 answer

comparision between OPC UA protocol and MQTT protocol

This is the first time I'm seeing ...READ MORE

answered Sep 4, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
3,289 views
0 votes
1 answer

Difference between MQTT and Apache- kafka

MQTT is a standard protocol (with many ...READ MORE

answered Aug 31, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
2,059 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP