class documentation
ACME CoAP Server.
It is used to setup the CoAPthon library to handle CoAP requests according to the ACME CSE requirements. It also provides functionality to send CoAP requests to other CoAP servers.
| Class | |
A logging handler for redirecting the CoAPthon logging to the ACME logging. |
| Method | __init__ |
Initialize the ACME CoAP Server. |
| Method | run |
Run the CoAP Server. |
| Method | send |
Send a CoAP request to a URL. |
| Method | stop |
Stop the CoAP Server. |
| Class Variable | __slots__ |
Slots of the ACME CoAP Server. |
| Instance Variable | client |
A cache for outgoing client connections. |
| Method | _handle |
Handle a listen exception. |
| Instance Variable | _is |
Flag whether the server is paused. If the server is paused, it will not handle any requests and return an error. |
| Instance Variable | _request |
The request handler to handle requests. |
| Instance Variable | _request |
The request layer to handle requests instead of resources. |
Initialize the ACME CoAP Server.
| Parameters | |
host:str | The host to bind the CoAP server to. |
port:int | The port to bind the CoAP server to. |
Send a CoAP request to a URL.
| Parameters | |
request:CSERequest | The request to send. |
url:str | The URL to send the request to. |
ignorebool | Flag whether to ignore the response. |
| Returns | |
Result | The result of the request. |
Handle a listen exception.
| Parameters | |
e:Exception | The exception. |
coapCoAP | The CoAP server. |
| Returns | |
bool | True if the exception was handled, False otherwise. |