Home
last modified time | relevance | path

Searched full:response (Results 1 – 25 of 703) sorted by relevance

12345678910>>...29

/Zephyr-latest/tests/subsys/mgmt/mcumgr/mcumgr_client/src/
Dmain.c33 struct mcumgr_image_upload response; in ZTEST() local
41 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
43 rc = img_mgmt_client_upload(&img_client, image_dummy, 1024, &response); in ZTEST()
44 zassert_equal(MGMT_ERR_ETIMEOUT, rc, "Expected to receive %d response %d", in ZTEST()
46 zassert_equal(MGMT_ERR_ETIMEOUT, response.status, "Expected to receive %d response %d\n", in ZTEST()
47 MGMT_ERR_ETIMEOUT, response.status); in ZTEST()
49 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
51 zassert_equal(MGMT_ERR_EOK, rc, "Expected to receive %d response %d", MGMT_ERR_EOK, rc); in ZTEST()
53 rc = img_mgmt_client_upload(&img_client, image_dummy, 1024, &response); in ZTEST()
54 zassert_equal(MGMT_ERR_ETIMEOUT, rc, "Expected to receive %d response %d", in ZTEST()
[all …]
/Zephyr-latest/samples/subsys/sip_svc/
DREADME.rst39 Got response of transaction id 0x00 and voltage is 0.846878v
40 Got response of transaction id 0x01 and voltage is 0.858170v
41 Got response of transaction id 0x02 and voltage is 0.860168v
42 Got response of transaction id 0x03 and voltage is 0.846832v
43 Got response of transaction id 0x04 and voltage is 0.858337v
44 Got response of transaction id 0x05 and voltage is 0.871704v
45 Got response of transaction id 0x06 and voltage is 0.859421v
46 Got response of transaction id 0x07 and voltage is 0.857254v
47 Got response of transaction id 0x08 and voltage is 0.858429v
48 Got response of transaction id 0x09 and voltage is 0.859879v
[all …]
/Zephyr-latest/subsys/dap/
Dcmsis_dap.c39 /* Number of retries after WAIT response */
72 uint8_t *const response) in dap_info() argument
74 uint8_t *info = response + 1; in dap_info()
160 response[0] = length; in dap_info()
165 /* Process Host Status command and prepare response */
168 uint8_t *const response) in dap_host_status() argument
182 *response = DAP_ERROR; in dap_host_status()
186 response[0] = DAP_OK; in dap_host_status()
190 /* Process Connect command and prepare response */
193 uint8_t *const response) in dap_connect() argument
[all …]
/Zephyr-latest/tests/drivers/gpio/gpio_nrf/src/
Dmain.c67 int response; in ZTEST() local
73 response = gpio_pin_configure(port, TEST_PIN, GPIO_OUTPUT | GPIO_ACTIVE_HIGH); in ZTEST()
74 zassert_ok(response, "Pin configuration failed: %d", response); in ZTEST()
76 response = gpio_pin_set(port, TEST_PIN, 0); in ZTEST()
77 zassert_ok(response, "Pin low state set failed: %d", response); in ZTEST()
79 response = gpio_pin_set(port, TEST_PIN, 1); in ZTEST()
80 zassert_ok(response, "Pin high state set failed: %d", response); in ZTEST()
82 response = gpio_pin_toggle(port, TEST_PIN); in ZTEST()
83 zassert_ok(response, "Pin toggle failed: %d", response); in ZTEST()
85 response = gpio_pin_configure(port, TEST_PIN, GPIO_INPUT | GPIO_PULL_DOWN); in ZTEST()
[all …]
/Zephyr-latest/subsys/net/lib/http/
Dhttp_client.c182 if (req->internal.response.http_cb && in on_url()
183 req->internal.response.http_cb->on_url) { in on_url()
184 req->internal.response.http_cb->on_url(parser, at, length); in on_url()
197 len = MIN(length, sizeof(req->internal.response.http_status) - 1); in on_status()
198 memcpy(req->internal.response.http_status, at, len); in on_status()
199 req->internal.response.http_status[len] = 0; in on_status()
200 req->internal.response.http_status_code = in on_status()
203 NET_DBG("HTTP response status %d %s", parser->status_code, in on_status()
204 req->internal.response.http_status); in on_status()
206 if (req->internal.response.http_cb && in on_status()
[all …]
/Zephyr-latest/samples/sensor/sensor_shell/pytest/
Dtest_sensor_shell.py15 assert any(['device name: sensor@0' in line for line in lines]), 'expected response not found'
16 assert any(['device name: sensor@1' in line for line in lines]), 'expected response not found'
18 logger.info('response is valid')
25 … assert any(['channel type=31(voltage)' in line for line in lines]), 'expected response not found'
28 …'channel type=53(gauge_state_of_health)' in line for line in lines]), 'expected response not found'
33 …type=59(gauge_desired_charging_current)' in line for line in lines]), 'expected response not found'
35 logger.info('response is valid')
42 …0(channel=co2, attr=sampling_frequency)' in line for line in lines]), 'expected response not found'
45 …l=gauge_state_of_health, attr=slope_th)' in line for line in lines]), 'expected response not found'
47 logger.info('response is valid')
[all …]
/Zephyr-latest/tests/drivers/i2c/i2c_bme688/src/
Dmain.c24 uint8_t response = 0; in read_sensor_register() local
26 err = i2c_reg_read_byte(i2c_device, DEVICE_ADDRESS, register_address, &response); in read_sensor_register()
28 TC_PRINT("I2C read reg, addr: 0x%x, val: 0x%x\n", register_address, response); in read_sensor_register()
29 return response; in read_sensor_register()
63 uint8_t response = 0; in set_sensor_iir_filter() local
66 response = read_sensor_register(CONF_REGISTER_ADDRESS); in set_sensor_iir_filter()
67 response &= ~IIR_FILER_ORDER_BIT_MASK; in set_sensor_iir_filter()
68 response |= IIR_FILER_COEFF_3 << IIR_FILER_ORDER_BIT_SHIFT; in set_sensor_iir_filter()
69 write_sensor_register(CONF_REGISTER_ADDRESS, response); in set_sensor_iir_filter()
122 unsigned char response = 0; in configure_measurements() local
[all …]
/Zephyr-latest/tests/bluetooth/audio/ascs/src/
Dtest_ase_register.c56 zassert_equal(err, -ENOTSUP, "Unexpected err response %d", err); in ZTEST()
64 zassert_equal(err, -EINVAL, "Unexpected err response %d", err); in ZTEST()
77 zassert_equal(err, 0, "Unexpected err response %d", err); in ZTEST()
81 zassert_equal(err, -EALREADY, "Unexpected err response %d", err); in ZTEST()
84 zassert_equal(err, 0, "Unexpected err response %d", err); in ZTEST()
96 zassert_equal(err, -EINVAL, "Unexpected err response %d", err); in ZTEST()
108 zassert_equal(err, -EINVAL, "Unexpected err response %d", err); in ZTEST()
117 zassert_equal(err, -EINVAL, "Unexpected err response %d", err); in ZTEST()
129 zassert_equal(err, 0, "Unexpected err response %d", err); in ZTEST()
137 zassert_equal(err, -EALREADY, "Unexpected err response %d", err); in ZTEST()
[all …]
/Zephyr-latest/include/zephyr/net/
Dcoap_link_format.h34 * @brief Build a CoAP response for a .well-known/core CoAP request.
38 * @param response A pointer to a CoAP response, will be initialized
39 * @param data A data pointer to be used to build the CoAP response
46 struct coap_packet *response,
50 * @brief Build a CoAP response for a .well-known/core CoAP request.
55 * @param response A pointer to a CoAP response, will be initialized
56 * @param data A data pointer to be used to build the CoAP response
64 struct coap_packet *response,
/Zephyr-latest/drivers/fpga/
Dfpga_altera_agilex_bridge.c110 * @param[in] response Buffer will contain the response
114 static void smc_callback(uint32_t c_token, struct sip_svc_response *response) in smc_callback() argument
116 if (response == NULL) { in smc_callback()
125 (struct sip_svc_private_data *)response->priv_data; in smc_callback()
131 LOG_DBG("\theader=%08x", response->header); in smc_callback()
132 LOG_DBG("\ta0=%016lx", response->a0); in smc_callback()
133 LOG_DBG("\ta1=%016lx", response->a1); in smc_callback()
134 LOG_DBG("\ta2=%016lx", response->a2); in smc_callback()
135 LOG_DBG("\ta3=%016lx", response->a3); in smc_callback()
137 private_data->response.header = response->header; in smc_callback()
[all …]
/Zephyr-latest/samples/net/sockets/http_server/src/static_web_resources/
Dmain.js9 const response = await fetch("/uptime");
10 if (!response.ok) {
11 throw new Error(`Response status: ${response.status}`);
14 const json = await response.json();
27 const response = await fetch("/led", {method : "POST", body : payload});
28 if (!response.ok) {
29 throw new Error(`Response satus: ${response.status}`);
/Zephyr-latest/tests/bluetooth/host/id/bt_setup_random_id_addr/src/
Dmain.c23 /* Hold data representing HCI command response for command BT_HCI_OP_VS_READ_STATIC_ADDRS */
26 /* Hold data representing response data for HCI command BT_HCI_OP_VS_READ_STATIC_ADDRS */
73 * is 1, and actual addresses information exists in the response.
75 * Response size should follow the formula
79 * Response length is properly configured, and response data contains a valid identity
84 * - bt_hci_cmd_send_sync() response contains single identity address
87 * - Non-zero positive number equals to the number of addresses in the response
126 * is 2, and actual addresses information exists in the response.
128 * Response size should follow the formula
132 * Response length is properly configured, and response data contains a mixed data with
[all …]
Dtest_suite_invalid_cases.c21 /* Hold data representing HCI command response for command BT_HCI_OP_VS_READ_STATIC_ADDRS */
24 /* Hold data representing response data for HCI command BT_HCI_OP_VS_READ_STATIC_ADDRS */
110 * Response size should follow the formula
114 * The response size set is less than the expected response size,so response should be
119 * - bt_hci_cmd_send_sync() response header size is less than expected
150 * actual data exists in the response.
152 * Response size should follow the formula
156 * The response size set is less than the expected response header size plus the size of the data
157 * holding the returned addresses information, so response should be discarded and operation fails.
161 * - bt_hci_cmd_send_sync() response size is less than expected
[all …]
/Zephyr-latest/subsys/net/lib/coap/
Dcoap_link_format.c216 static bool append_to_coap_pkt(struct coap_packet *response, in append_to_coap_pkt() argument
244 res = append(response, str + pos, len); in append_to_coap_pkt()
253 struct coap_packet *response, in format_uri() argument
265 res = append_to_coap_pkt(response, &prefix[0], sizeof(prefix) - 1, in format_uri()
279 res = append_to_coap_pkt(response, *p, path_len, remaining, in format_uri()
295 res = append_to_coap_pkt(response, "/", 1, remaining, offset, in format_uri()
308 res = append_to_coap_pkt(response, ">", 1, remaining, offset, current); in format_uri()
324 struct coap_packet *response, in format_attributes() argument
339 res = append_to_coap_pkt(response, ";", 1, in format_attributes()
352 res = append_to_coap_pkt(response, *attr, attr_len, in format_attributes()
[all …]
/Zephyr-latest/samples/drivers/ipm/ipm_esp32/
DREADME.rst13 message to the APP using the IPM driver, and waits for the APP response
43 PRO_CPU is sending a request, waiting remote response...
45 PRO_CPU is sending a request, waiting remote response...
47 PRO_CPU is sending a request, waiting remote response...
49 PRO_CPU is sending a request, waiting remote response...
51 PRO_CPU is sending a request, waiting remote response...
53 PRO_CPU is sending a request, waiting remote response...
55 PRO_CPU is sending a request, waiting remote response...
57 PRO_CPU is sending a request, waiting remote response...
/Zephyr-latest/samples/net/sockets/coap_server/src/
Dseparate.c19 struct coap_packet response; in separate_get() local
41 r = coap_ack_init(&response, request, data, sizeof(data), 0); in separate_get()
46 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in separate_get()
58 r = coap_packet_init(&response, data, sizeof(data), in separate_get()
65 r = coap_append_option_int(&response, COAP_OPTION_CONTENT_FORMAT, in separate_get()
71 r = coap_packet_append_payload_marker(&response); in separate_get()
76 /* The response that coap-client expects */ in separate_get()
83 r = coap_packet_append_payload(&response, (uint8_t *)payload, in separate_get()
89 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in separate_get()
Dlarge.c23 struct coap_packet response; in large_get() local
51 r = coap_packet_init(&response, data, sizeof(data), in large_get()
58 r = coap_append_option_int(&response, COAP_OPTION_CONTENT_FORMAT, in large_get()
64 r = coap_append_block2_option(&response, &ctx); in large_get()
69 r = coap_packet_append_payload_marker(&response); in large_get()
79 r = coap_packet_append_payload(&response, (uint8_t *)payload, size); in large_get()
84 r = coap_next_block(&response, &ctx); in large_get()
90 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in large_get()
101 struct coap_packet response; in large_update_put() local
159 r = coap_ack_init(&response, request, data, sizeof(data), code); in large_update_put()
[all …]
Dtest.c21 struct coap_packet response; in piggyback_get() local
45 r = coap_packet_init(&response, data, sizeof(data), in piggyback_get()
52 r = coap_append_option_int(&response, COAP_OPTION_CONTENT_FORMAT, in piggyback_get()
58 r = coap_packet_append_payload_marker(&response); in piggyback_get()
63 /* The response that coap-client expects */ in piggyback_get()
70 r = coap_packet_append_payload(&response, (uint8_t *)payload, in piggyback_get()
76 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in piggyback_get()
86 struct coap_packet response; in test_del() local
109 r = coap_packet_init(&response, data, sizeof(data), in test_del()
116 r = coap_resource_send(resource, &response, addr, addr_len, NULL); in test_del()
[all …]
/Zephyr-latest/doc/connectivity/networking/api/
Dcoap_client.rst15 The application is notified about the response via a callback that is provided to the API
46 After initialization, the application can send a CoAP request and wait for the response.
52 - There is a response for the request
56 response and means that the current response is part of a blockwise transfer. When the
57 ``last_block`` is set to true, the response is finished and the client is ready for the next request
60 If the server responds to the request, the library provides the response to the
61 application through the response callback registered in the request structure.
62 As the response can be a blockwise transfer and the client calls the callback once per each
63 block, the application should be to process all of the blocks to be able to process the response.
65 The following is an example of a very simple response handling function:
[all …]
/Zephyr-latest/tests/bsim/bluetooth/ll/edtt/hci_test_app/src/
Dmain.c76 * @brief Provide an error response when an HCI command send failed
80 uint16_t response = sys_cpu_to_le16(waiting_response); in error_response() local
84 edtt_write((uint8_t *)&response, sizeof(response), EDTTT_BLOCK); in error_response()
149 static int send_hci_command(uint16_t opcode, uint8_t param_len, uint16_t response) in send_hci_command() argument
155 waiting_response = response; in send_hci_command()
181 uint16_t response = sys_cpu_to_le16(CMD_ECHO_RSP); in echo() local
184 edtt_write((uint8_t *)&response, sizeof(response), EDTTT_BLOCK); in echo()
215 uint16_t response = sys_cpu_to_le16(waiting_response); in command_complete() local
227 edtt_write((uint8_t *)&response, sizeof(response), EDTTT_BLOCK); in command_complete()
246 uint16_t response = sys_cpu_to_le16(waiting_response); in command_status() local
[all …]
/Zephyr-latest/tests/subsys/mgmt/mcumgr/smp_version/src/
Dmain.c36 /* Response to legacy packet */
42 /* Response if a legacy packet is sent and server does not support it */
49 /* Response to current packet */
57 /* Response if an invalid (too high) version packet is sent and server does not support it */
141 /* For a short duration to see if response has been received */ in ZTEST()
145 /* Retrieve response buffer and ensure validity */ in ZTEST()
149 /* Check that the received response matches the expected response */ in ZTEST()
156 "Expected response header version mismatch"); in ZTEST()
167 "Did not expect to get output in response"); in ZTEST()
172 "Expected to get rc in response"); in ZTEST()
[all …]
/Zephyr-latest/include/zephyr/bluetooth/mesh/
Dbrg_cfg_cli.h66 * @param rsp Response received from the Bridging Configuration Server.
78 * @param rsp Response received from the Bridging Configuration Server.
90 * @param rsp Response received from the Bridging Configuration Server.
113 * or not. The function expects a Subnet Bridge Status message as a response
117 * way the method will not wait for response and will return immediately after
122 * @param status Status response parameter, returns one of
137 * Status message as a response from the destination node.
140 * way the method will not wait for response and will return immediately after
148 * @param status Status response parameter, returns one of
164 * Bridging Table Size Status message as a response from the destination node.
[all …]
Dhealth_cli.h135 * will not wait for response and will return immediately after
138 * To process the response arguments of an async method, register
147 * @param test_id Test ID response buffer.
148 * @param faults Fault array response buffer.
149 * @param fault_count Fault count response buffer.
161 * will not wait for response and will return immediately after
164 * To process the response arguments of an async method, register
173 * @param test_id Test ID response buffer.
174 * @param faults Fault array response buffer.
175 * @param fault_count Fault count response buffer.
[all …]
/Zephyr-latest/scripts/tests/twister_blackbox/test_data/samples/pytest/shell/pytest/
Dtest_shell.py15 assert 'Available commands:' in lines, 'expected response not found'
16 logger.info('response is valid')
22 assert any(['Zephyr version' in line for line in lines]), 'expected response not found'
23 logger.info('response is valid')
/Zephyr-latest/samples/subsys/testsuite/pytest/shell/pytest/
Dtest_shell.py15 assert 'Available commands:' in lines, 'expected response not found'
16 logger.info('response is valid')
22 assert any(['Zephyr version' in line for line in lines]), 'expected response not found'
23 logger.info('response is valid')

12345678910>>...29