Lines Matching refs:leshan
20 from leshan import Leshan
25 def test_blockwise_1(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str):
29 fmt = leshan.format
30 to = leshan.timeout
31 leshan.format = 'OPAQUE'
32 leshan.timeout = 600
33 leshan.write(endpoint, '5/0/0', fw)
36 leshan.execute(endpoint, '5/0/2')
43 leshan.format = fmt
44 leshan.timeout = to
46 def test_blockwise_2(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str):
50 fmt = leshan.format
51 to = leshan.timeout
52 leshan.format = 'OPAQUE'
54 leshan.timeout = 1
56 leshan.write(endpoint, '5/0/0', fw)
62 leshan.timeout = 600
63 leshan.write(endpoint, '5/0/0', fw)
66 leshan.execute(endpoint, '5/0/2')
73 leshan.format = fmt
74 leshan.timeout = to
77 def test_blockwise_3(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str):
87 fmt = leshan.format
88 to = leshan.timeout
89 leshan.format = 'OPAQUE'
90 leshan.timeout = 600
91 leshan.write(endpoint, '19/0/0/0', data)
100 leshan.format = fmt
101 data = leshan.read(endpoint, '19/0/0')
105 leshan.format = fmt
106 leshan.timeout = to
109 def test_blockwise_4(shell: Shell, dut: DeviceAdapter, leshan: Leshan, endpoint: str):
118 fmt = leshan.format
119 to = leshan.timeout
120 leshan.format = 'OPAQUE'
121 leshan.timeout = 600
122 leshan.write(endpoint, '19/0/0/0', data)
123 leshan.format = 'SENML_CBOR'
126 with leshan.get_event_stream(endpoint) as events:
134 leshan.format = fmt
135 leshan.timeout = to