wotpy.protocols.coap.resources.event
CoAP resources to deal with Event interactions.
Functions
|
Takes a CoAP request and returns the Thing Event identified by the request arguments. |
Classes
|
CoAP resource to observe Event emissions. |
- class wotpy.protocols.coap.resources.event.EventResource(server)
Bases:
ObservableResourceCoAP resource to observe Event emissions.
- async add_observation(request, server_observation)
Method that decides whether to add a new observer. A new observer is added for each GET request.
- async render_get(request)
Returns a CoAP response with the last observed event emission.
- async wotpy.protocols.coap.resources.event.get_thing_event(server, request)
Takes a CoAP request and returns the Thing Event identified by the request arguments.