Home
last modified time | relevance | path

Searched refs:coap (Results 1 – 25 of 45) sorted by relevance

12

/openthread-latest/tests/scripts/thread-cert/
Dtest_coap.py35 import coap
116 actual_value = coap.CoapOptionHeader._read_extended_value(None, value)
130 actual_value = coap.CoapOptionHeader._read_extended_value(data, value)
144 actual_value = coap.CoapOptionHeader._read_extended_value(data, value)
157 option_header = coap.CoapOptionHeader.from_bytes(io.BytesIO(data))
171 option_header = coap.CoapOptionHeader.from_bytes(io.BytesIO(data))
183 coap_opt = coap.CoapOption(_type, any_value())
195 coap_opt = coap.CoapOption(any_coap_option_type(), value)
214 factory = coap.CoapOptionsFactory()
231 code_obj = coap.CoapCode(code)
[all …]
DCert_5_1_05_RouterAddressTimeout.py120 } <= set(p.coap.tlv.type) and\
121 p.coap.code == COAP_CODE_ACK and\
199 } <= set(p.coap.tlv.type) and\
200 p.coap.code == COAP_CODE_POST and\
212 } <= set(p.coap.tlv.type) and\
213 p.coap.code == COAP_CODE_ACK and\
291 } <= set(p.coap.tlv.type) and\
292 p.coap.code == COAP_CODE_POST and\
304 } <= set(p.coap.tlv.type) and\
305 p.coap.code == COAP_CODE_ACK and\
DCert_8_3_01_CommissionerPetition.py125 } <= set(p.coap.tlv.type)\
150 } <= set(p.coap.tlv.type) and\
189 } <= set(p.coap.tlv.type) and\
203 } <= set(p.coap.tlv.type) and\
221 } <= set(p.coap.tlv.type)
242 } <= set(p.coap.tlv.type) and\
283 } <= set(p.coap.tlv.type) and\
305 } <= set(p.coap.tlv.type) and\
340 } <= set(p.coap.tlv.type)\
359 } <= set(p.coap.tlv.type) and\
DCert_5_1_06_RemoveRouterId.py114 } <= set(p.coap.tlv.type) and\
115 p.coap.code == COAP_CODE_ACK and\
165 } <= set(p.coap.tlv.type) and\
166 p.coap.code == COAP_CODE_POST and\
178 } <= set(p.coap.tlv.type) and\
179 p.coap.code == COAP_CODE_ACK and\
DCert_9_2_02_MGMTCommissionerSet.py94 …commissioner_session_id_tlv = command.get_sub_tlv(msg.coap.payload, mesh_cop.CommissionerSessionId)
156 [NM_STEERING_DATA_TLV] == p.coap.tlv.type and\
170 [NM_STATE_TLV] == p.coap.tlv.type and\
202 [NM_STATE_TLV] == p.coap.tlv.type and\
261 [NM_STATE_TLV] == p.coap.tlv.type and\
296 [NM_STATE_TLV] == p.coap.tlv.type and\
329 [NM_STATE_TLV] == p.coap.tlv.type and\
363 [NM_STATE_TLV] == p.coap.tlv.type and\
Dmessage.py34 import coap
76 elif isinstance(udp_datagram.payload, (coap.CoapMessage, coap.CoapMessageProxy)):
113 msg._coap = self.coap
166 def coap(self): member in Message
266 for tlv in self.coap.payload:
275 for tlv in self.coap.payload:
287 for tlv in self.coap.payload:
298 for tlv in self.coap.payload:
308 assert uri_path == self.coap.uri_path
314 assert code == self.coap.code
[all …]
DCert_5_2_01_REEDAttach.py246 } <= set(p.coap.tlv.type)\
266 } <= set(p.coap.tlv.type)\
277 } <= set(p.coap.tlv.type) and\
278 p.coap.code == COAP_CODE_ACK and\
289 } <= set(p.coap.tlv.type) and\
290 p.coap.code == COAP_CODE_ACK and\
DCert_5_2_03_LeaderReject2Hops.py353 } <= set(p.coap.tlv.type)
373 } <= set(p.coap.tlv.type) and\
374 p.coap.code == COAP_CODE_ACK and\
406 } <= set(p.coap.tlv.type)
421 p.coap.code == COAP_CODE_ACK and\
DCert_9_2_19_PendingDatasetGet.py134 filter(lambda p: p.coap.tlv.type is nullField).\
145 filter(lambda p: p.coap.tlv.type is nullField).\
195 filter(lambda p: p.coap.tlv.type is nullField).\
262 } <= set(p.coap.tlv.type) and\
277 filter(lambda p: p.coap.tlv.type is nullField).\
DCert_5_3_03_AddressQuery.py215 } <= set(p.coap.tlv.type) and\
217 p.coap.code == COAP_CODE_POST
256 } <= set(p.coap.tlv.type) and\
258 p.coap.code == COAP_CODE_POST
325 p.coap.code == COAP_CODE_POST
342 p.coap.code == COAP_CODE_POST
DCert_7_1_07_BorderRouterAsLeader.py236 filter(lambda p: p.coap.mid == _dn_pkt.coap.mid).\
349 filter(lambda p: p.coap.mid == _dn_pkt.coap.mid).\
476 filter(lambda p: p.coap.mid == _dn_pkt.coap.mid).\
DCert_5_1_01_RouterAttach.py248 } <= set(p.coap.tlv.type)\
268 } <= set(p.coap.tlv.type) and\
269 p.coap.code == COAP_CODE_ACK and\
DCert_6_1_02_REEDAttach.py265 } <= set(p.coap.tlv.type)
275 } <= set(p.coap.tlv.type) and\
276 p.coap.code == COAP_CODE_ACK and\
Dv1_2_test_multicast_listener_registration.py653 … logging.info('MLR.rsp %s uri_path=%s, payload=%s', rsp, rsp.coap.uri_path, rsp.coap.payload)
656 for tlv in rsp.coap.payload:
675 …g.info('Check ACK for %s: %s, %s, %s, %s', message_id, msg, msg.coap.message_id, msg.coap.uri_path,
676 msg.coap.payload)
677 if msg.coap.message_id == message_id:
689 logging.info("MLR.req: %s %s" % (msg.coap.message_id, msg.coap.payload))
693 message_ids.append(msg.coap.message_id)
DCert_5_3_07_DuplicateAddress.py191 } <= set(p.coap.tlv.type) and\
211 } <= set(p.coap.tlv.type) and\
DCert_9_2_07_DelayTimer.py169 lambda p: p.coap.code == COAP_CODE_ACK and p.thread_meshcop.tlv.state == 1)
187 lambda p: p.coap.code == COAP_CODE_ACK and p.thread_meshcop.tlv.state == 1)
206 lambda p: p.coap.code == COAP_CODE_ACK and p.thread_meshcop.tlv.state == 1)
DCert_5_1_04_RouterAddressReallocation.py259 } <= set(p.coap.tlv.type) and\
260 p.coap.code == COAP_CODE_ACK and\
/openthread-latest/src/cli/
DREADME_COAP.md16 > coap start
18 > coap resource test-resource
25 > coap start
27 > coap get fdde:ad00:beef:0:d395:daee:a75:3964 test-resource
29 coap response from [fdde:ad00:beef:0:2780:9423:166c:1aac] with payload: 30
30 > coap put fdde:ad00:beef:0:2780:9423:166c:1aac test-resource con payload
32 coap response from [fdde:ad00:beef:0:2780:9423:166c:1aac]
40 coap request from [fdde:ad00:beef:0:b3:e3f6:2dcc:4b79] GET
41 coap response sent
42 coap request from [fdde:ad00:beef:0:b3:e3f6:2dcc:4b79] PUT with payload: 7061796c6f6164
[all …]
/openthread-latest/tests/scripts/thread-cert/border_router/MATN/
DMATN_15_ChangeOfPrimaryBBRTriggersRegistration.py174 p.coap.mid == _pkt.coap.mid) \
184 p: p.coap.mid == _pkt.coap.mid and
193 p: p.coap.mid == _pkt.coap.mid and
DMATN_16_LargeNumberOfMulticastGroupSubscriptionsToBBR.py164 .filter(lambda p: p.coap.mid == _pkt.coap.mid and p.thread_nm.tlv.status == 0) \
/openthread-latest/tests/scripts/thread-cert/pktverify/
Dtest_layer_fields.py80 coap = p.coap
81 self.assertIsInstance(coap.version, int)
82 self.assertIsInstance(coap.type, int)
83 self.assertIsInstance(coap.token_len, int)
84 self.assertIsInstance(coap.code, int)
85 self.assertIsInstance(coap.mid, int)
86 self.assertIsInstanceOrNull(coap.token, int)
87 self.assertIsInstanceOrNull(coap.opt.uri_path_recon, str)
88 self.assertIsInstanceOrNull(coap.payload, bytearray)
90 print(p.coap.tlv.type, p.coap.tlv)
[all …]
Dpacket.py38 from pktverify.coap import CoapLayer
90 def coap(self) -> CoapLayer: member in Packet
/openthread-latest/script/
Dcheck-posix-pty241 coap_response=$(coap-client -B 5 -m GET "coap://[${LEADER_ALOC}]:5683/TestResource")
252 …coap_response=$(echo -n '120100' | xxd -r -p | coap-client -B 5 -m POST "coap://[${LEADER_ALOC}]:6…
/openthread-latest/src/core/
DBUILD.gn381 "coap/coap.cpp",
382 "coap/coap.hpp",
383 "coap/coap_message.cpp",
384 "coap/coap_message.hpp",
385 "coap/coap_secure.cpp",
386 "coap/coap_secure.hpp",
809 "config/coap.h",
/openthread-latest/etc/gn/
Dopenthread.gni108 # Enable coap api support
111 # Enable secure coap api support
114 # Enable coap observe (RFC7641) api support

12