Searched refs:CoAP (Results 1 – 2 of 2) sorted by relevance
1 % CoAP layer test campaign4 = Import the CoAP layer7 + Test CoAP8 = CoAP default values9 assert(raw(CoAP()) == b'\x40\x00\x00\x00')12 p = CoAP(token='foobar')13 assert(CoAP(raw(p)).tkl == 6)16 p = CoAP(b'\x40\x01\xd9\xe1\xbb\x2e\x77\x65\x6c\x6c\x2d\x6b\x6e\x6f\x77\x6e\x04\x63\x6f\x72\x65')27 assert(raw(CoAP(options=[("Uri-Query", "query")])) == b'\x40\x00\x00\x00\xd5\x02\x71\x75\x65\x72\x7…30 assert(raw(CoAP(options=[("Location-Path", 'x' * 280)])) == b'\x40\x00\x00\x00\x8e\x0b\x00' + b'\x7…[all …]
223 class CoAP(Packet): class249 bind_layers(UDP, CoAP, sport=5683)250 bind_layers(UDP, CoAP, dport=5683)