This module implements a TransportEndpoint for UDP based on the asyncio DatagramProtocol.
While it is in theory capable of sending requests too, it should not be used like that, because it won’t receive ICMP errors (see below).
- This implementation does not receive ICMP errors. This violates the CoAP
- standard and can lead to unnecessary network traffic, bad user experience (when used for client requests) or even network attack amplification.
- This transport is experimental and likely to change.
TransportEndpointSimpleServer(ctx: aiocoap.interfaces.MessageManager, log, loop)¶
create_server(server_address, ctx: aiocoap.interfaces.MessageManager, log, loop)¶