This module implements a MessageInterface 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.
MessageInterfaceSimpleServer(ctx: aiocoap.interfaces.MessageManager, log, loop)¶
create_server(bind, ctx: aiocoap.interfaces.MessageManager, log, loop)¶