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