module documentation

This module provides helper functions to work with CoAPthon.

Function newCoAPOption Create a new CoAP option.
Function registerOneM2MContentTypes Register the oneM2M content types with CoAPthon.
Function registerOneM2MOptions Register the oneM2M options with CoAPthon.
Variable operationsMethodsMap Maps the oneM2M operation to the CoAP method number.
def newCoAPOption(number: int, value: str | int) -> CoapthonOption:

Create a new CoAP option.

Parameters
number:intThe option number.
value:str | intThe option value.
Returns
CoapthonOptionThe new CoAP option instance.
def registerOneM2MContentTypes():

Register the oneM2M content types with CoAPthon.

def registerOneM2MOptions():

Register the oneM2M options with CoAPthon.

operationsMethodsMap =

Maps the oneM2M operation to the CoAP method number.