Lines Matching full:payload
117 zassert_equal(0, ret, "Not able to append payload marker"); in ZTEST_F()
138 const uint8_t *payload = coap_packet_get_payload(&msg->cpkt, &payload_len); in ZTEST_F() local
140 zassert_not_null(payload, "Payload expected"); in ZTEST_F()
146 /* payload should start after headers, options and payload marker (size: 1) */ in ZTEST_F()
147 zassert_equal(payload, msg->cpkt.data + EXPECTED_HEADERS_LEN, in ZTEST_F()
148 "Payload not starting at expected address"); in ZTEST_F()
153 "Payload not starting at expected address"); in ZTEST_F()
155 /* check payload */ in ZTEST_F()
157 zassert_equal(payload[i], i, "Byte %i in payload is wrong", i); in ZTEST_F()
160 /* check first byte after payload */ in ZTEST_F()
161 zassert_equal(payload[payload_len], 0x00, "Byte after payload is wrong"); in ZTEST_F()
191 zassert_equal(0, ret, "Not able to append payload marker"); in ZTEST_F()
209 const uint8_t *payload = coap_packet_get_payload(&msg->cpkt, &payload_len); in ZTEST_F() local
211 zassert_not_null(payload, "Payload expected"); in ZTEST_F()
212 zassert_equal(payload_len, CONFIG_LWM2M_COAP_BLOCK_SIZE, "Wrong payload size"); in ZTEST_F()
213 zassert_equal(0x00, payload[0], "First byte in payload wrong"); in ZTEST_F()
214 zassert_equal(0x3f, payload[CONFIG_LWM2M_COAP_BLOCK_SIZE - 1], in ZTEST_F()
215 "Last byte in payload wrong"); in ZTEST_F()
223 const uint8_t *payload; in ZTEST_F() local
248 zassert_equal(0, ret, "Not able to append payload marker"); in ZTEST_F()
265 payload = coap_packet_get_payload(&msg->cpkt, &payload_len); in ZTEST_F()
267 zassert_not_null(payload, "Payload expected"); in ZTEST_F()
268 zassert_equal(payload_len, CONFIG_LWM2M_COAP_BLOCK_SIZE, "Wrong payload size"); in ZTEST_F()
269 zassert_equal(0x00, payload[0], "First byte in payload wrong"); in ZTEST_F()
270 zassert_equal(0x3f, payload[CONFIG_LWM2M_COAP_BLOCK_SIZE - 1], in ZTEST_F()
271 "Last byte in payload wrong"); in ZTEST_F()
280 payload = coap_packet_get_payload(&msg->cpkt, &payload_len); in ZTEST_F()
282 zassert_not_null(payload, "Payload expected"); in ZTEST_F()
283 zassert_equal(payload_len, CONFIG_LWM2M_COAP_BLOCK_SIZE, "Wrong payload size"); in ZTEST_F()
284 zassert_equal(0x40, payload[0], "First byte in payload wrong"); in ZTEST_F()
285 zassert_equal(0x7f, payload[CONFIG_LWM2M_COAP_BLOCK_SIZE - 1], in ZTEST_F()
286 "Last byte in payload wrong"); in ZTEST_F()
298 const uint8_t *payload; in ZTEST_F() local
324 zassert_equal(0, ret, "Not able to append payload marker"); in ZTEST_F()
341 payload = coap_packet_get_payload(&msg->cpkt, &payload_len); in ZTEST_F()
343 zassert_not_null(payload, "Payload expected"); in ZTEST_F()
344 zassert_equal(payload_len, CONFIG_LWM2M_COAP_BLOCK_SIZE, "Wrong payload size"); in ZTEST_F()
345 zassert_equal(0x00, payload[0], "First byte in payload wrong"); in ZTEST_F()
346 zassert_equal(0x3f, payload[CONFIG_LWM2M_COAP_BLOCK_SIZE - 1], in ZTEST_F()
347 "Last byte in payload wrong"); in ZTEST_F()
356 payload = coap_packet_get_payload(&msg->cpkt, &payload_len); in ZTEST_F()
358 zassert_not_null(payload, "Payload expected"); in ZTEST_F()
359 zassert_equal(payload_len, CONFIG_LWM2M_COAP_BLOCK_SIZE, "Wrong payload size"); in ZTEST_F()
360 zassert_equal(0x40, payload[0], "First byte in payload wrong"); in ZTEST_F()
361 zassert_equal(0x7f, payload[CONFIG_LWM2M_COAP_BLOCK_SIZE - 1], in ZTEST_F()
362 "Last byte in payload wrong"); in ZTEST_F()
371 payload = coap_packet_get_payload(&msg->cpkt, &payload_len); in ZTEST_F()
373 zassert_not_null(payload, "Payload expected"); in ZTEST_F()
374 zassert_equal(payload_len, 1, "Wrong payload size"); in ZTEST_F()
375 zassert_equal(0x80, payload[0], "First (and only) byte in payload wrong"); in ZTEST_F()