Tanganelli / CoAPthon

CoAPthon is a python library to the CoAP protocol aligned with the RFC
MIT License
224 stars 131 forks source link

Child resource #142

Open EmileAlbert opened 5 years ago

EmileAlbert commented 5 years ago

Hi everyone,

The library is really usefull, thanks for that ! My question is the next one : I want to create child resource, how can I invoke add_resource to indicate the parent of the new resource ? Is there a process to do that ?

Thanks in advance

Tanganelli commented 5 years ago

Hi,

thank you. To invoke the add_resource with a parent resource you should simply specify the correct path. If the base resource is registered with "/base" then the child should be something like "/base/child".

BR

Il giorno mar 23 apr 2019 alle ore 14:36 EmileAlbert < notifications@github.com> ha scritto:

Hi everyone,

The library is really usefull, thanks for that ! My question is the next one : I want to create child resource, how can I invoke add_resource to indicate the parent of the new resource ? Is there a process to do that ?

Thanks in advance

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Tanganelli/CoAPthon/issues/142, or mute the thread https://github.com/notifications/unsubscribe-auth/ABTPN6QPA223NXPY6OXYBR3PR37FLANCNFSM4HHXQV3A .