coaplibcoap

How to dynamically create ressource with attribute?


Context

I'm trying to dynamically create and access multiple CoAP ressources on the same server. Basically what is would like is something like get coap://ip/ressource/* and get all the data of ressource/1 ressource/n

Linked subject

I found the following CoAP: Group similar resources under one

"what's left is that you create a /TIME/ resource (the slash at the end does matter) and announce it in .well-known/core as ;if="core.b"."

Problem

I don't know how i can create a ressource with specific attributes from client

Experiment with libcoap

coap-client -m put coap://ip/ressource;if="core.b" doesn't return error but attributes is not created (used copper)


Solution

  • That's entirely up to the server. Are you writing the server (if so, using which framework?) or just trying to make an existing server (if so, which?) behave as you like?