Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[wakaama-dev] Why PUT cannot create object?

Hello colleagues,

In function dm_handleReques of core/management.c in case when message->code == COAP_POST, object can be created using object_create, but in case when message->code == COAP_PUT, object cannot be created.
Could you please explain, why for COAP_PUT there is no ability to create object?
 "If no resource exists, then the server MAY create a new resource with that URI, resulting in a 2.01 (Created) Response Code."
I understand, that "MAY" means, that interpretation is free, so if world "MAY" is the only reason why for COAP_PUT there was not implemented possibility to create object, please let me know.
Also if you know some other reasons why for COAP_PUT there was not implemented possibility to create object, please let me know that reasons.

regards, Sviat

Back to the top