wotpy.protocols.coap.resources.action

CoAP resources to deal with Action interactions.

Functions

get_thing_action(server, request)

Takes a CoAP request and returns the Thing Action identified by the request arguments.

Classes

ActionResource(server)

CoAP resource to invoke Actions and observe those invocations.

class wotpy.protocols.coap.resources.action.ActionResource(server)

Bases: ObservableResource

CoAP resource to invoke Actions and observe those invocations.

async render_post(request)

Handler for action invocations.

async wotpy.protocols.coap.resources.action.get_thing_action(server, request)

Takes a CoAP request and returns the Thing Action identified by the request arguments.