Module Import alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Import alias identifier Import alias identifier Import alias identifier Import alias identifier FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults ListLoad ListLoad body Assert CompareIn NameLoad AttributeLoad NameLoad attr Assert CompareIn NameLoad BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore NameLoad For NameStore Call NameLoad Num BinOpAdd Num Num body If CompareLt NameLoad BinOpLShift Num BinOpMult Num NameLoad body Assign NameStore NameLoad Break If UnaryOpNot NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad AugAssignAdd NameStore ListLoad BinOpBitOr BinOpBitOr BinOpLShift AttributeLoad NameLoad attr Num BinOpLShift NameLoad Num NameLoad AugAssignAdd NameStore ListLoad NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr NameLoad Num AugAssignAdd NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Num For NameStore NameLoad body Assert CompareGtE AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr If NameLoad body AugAssignAdd NameStore ListLoad AttributeLoad NameLoad attr AugAssignAdd NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict If CompareLt Call NameLoad NameLoad Num body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str BinOpBitAnd BinOpRShift SubscriptLoad NameLoad Index Num Num Num If CompareNotEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str BinOpBitAnd BinOpRShift SubscriptLoad NameLoad Index Num Num Num If CompareNotIn SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Assign NameStore BinOpBitAnd SubscriptLoad NameLoad Index Num Num If CompareGt NameLoad Num body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Num Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Num Assign NameStore SubscriptLoad NameLoad Slice Num If CompareLt Call NameLoad NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign SubscriptStore NameLoad Index Str ListLoad Assign NameStore Num While NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot NameLoad body Break AugAssignAdd SubscriptStore NameLoad Index Str ListLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list
N/A N/A logging NullHandler N/A N/A logging Handler N/A emit N/A N/A self record N/A N/A N/A N/A N/A N/A log N/A N/A logging getLogger coapMessage N/A N/A N/A log setLevel N/A logging ERROR N/A N/A N/A log addHandler N/A NullHandler N/A coapOption o N/A coapUtils u N/A coapException e N/A coapDefines d sortOptions N/A N/A options N/A N/A N/A options N/A N/A 
    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |Ver| T |  TKL  |      Code     |          Message ID           |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Token (if any, TKL bytes) ...
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |   Options (if any) ...
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |1 1 1 1 1 1 1 1|    Payload (if any) ...
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 buildMessage N/A N/A msgtype token code messageId options payload N/A N/A N/A N/A N/A N/A msgtype N/A d TYPE_ALL N/A N/A code N/A N/A d METHOD_ALL N/A d COAP_RC_ALL N/A message N/A N/A TKL None N/A tokenLen N/A range 1 N/A 8 1 N/A N/A N/A token N/A 1 N/A 8 tokenLen N/A N/A TKL tokenLen N/A N/A N/A TKL N/A N/A N/A ValueError N/A N/A token {0} too long format token N/A message N/A N/A N/A N/A N/A d COAP_VERSION 6 N/A msgtype 4 TKL N/A message N/A code N/A message N/A N/A u int2buf messageId 2 N/A message N/A N/A u int2buf token TKL N/A options N/A sortOptions options N/A lastOptionNum 0 N/A option options N/A N/A N/A N/A option optionNumber lastOptionNum N/A message N/A N/A option toBytes lastOptionNum N/A lastOptionNum N/A option optionNumber N/A payload N/A N/A message N/A N/A d COAP_PAYLOAD_MARKER N/A message payload N/A message N/A parseMessage N/A N/A message N/A N/A N/A returnVal N/A N/A N/A N/A len message 4 N/A N/A N/A N/A e messageFormatError N/A N/A message to short, {0} bytes: not space for header format N/A len message N/A N/A returnVal N/A version N/A N/A N/A message N/A 0 6 3 N/A N/A N/A returnVal N/A version N/A d COAP_VERSION N/A N/A N/A N/A e messageFormatError N/A N/A invalid CoAP version {0} format N/A returnVal N/A version N/A N/A returnVal N/A type N/A N/A N/A message N/A 0 4 3 N/A N/A N/A returnVal N/A type N/A d TYPE_ALL N/A N/A N/A N/A e messageFormatError N/A N/A invalid message type {0} format N/A returnVal N/A type N/A TKL N/A N/A message N/A 0 15 N/A N/A TKL 8 N/A N/A N/A N/A e messageFormatError N/A N/A TKL too large {0} format TKL N/A N/A returnVal N/A code N/A message N/A 1 N/A N/A returnVal N/A messageId N/A N/A u buf2int N/A message N/A 2 4 N/A message N/A message N/A 4 N/A N/A N/A len message TKL N/A N/A N/A N/A e messageFormatError N/A N/A message to short, {0} bytes: not space for token format N/A len message N/A N/A returnVal N/A token N/A N/A u buf2int N/A message N/A TKL N/A message N/A message N/A TKL N/A N/A returnVal N/A options N/A N/A currentOptionNumber 0 N/A True N/A N/A N/A option message N/A N/A o parseOption message currentOptionNumber N/A N/A option N/A N/A N/A N/A returnVal N/A options N/A option N/A currentOptionNumber N/A option optionNumber N/A N/A returnVal N/A payload message N/A N/A N/A log debug N/A N/A parsed message: {0} format returnVal N/A returnVal N/A