Home
last modified time | relevance | path

Searched refs:response (Results 1 – 25 of 151) sorted by relevance

1234567

/Zephyr-Core-3.4.0/subsys/net/lib/http/
Dhttp_client.c162 if (req->internal.response.http_cb && in on_url()
163 req->internal.response.http_cb->on_url) { in on_url()
164 req->internal.response.http_cb->on_url(parser, at, length); in on_url()
177 len = MIN(length, sizeof(req->internal.response.http_status) - 1); in on_status()
178 memcpy(req->internal.response.http_status, at, len); in on_status()
179 req->internal.response.http_status[len] = 0; in on_status()
180 req->internal.response.http_status_code = in on_status()
184 req->internal.response.http_status); in on_status()
186 if (req->internal.response.http_cb && in on_status()
187 req->internal.response.http_cb->on_status) { in on_status()
[all …]
/Zephyr-Core-3.4.0/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 …]
Dcoap_client.c452 static int recv_response(struct coap_client *client, struct coap_packet *response) in recv_response() argument
471 ret = coap_packet_parse(response, client->recv_buf, len, NULL, 0); in recv_response()
538 static int handle_response(struct coap_client *client, const struct coap_packet *response) in handle_response() argument
553 response_type = coap_header_get_type(response); in handle_response()
557 coap_header_get_id(response) != client->pending.id) { in handle_response()
566 uint8_t response_code = coap_header_get_code(response); in handle_response()
567 const uint8_t *payload = coap_packet_get_payload(response, &payload_len); in handle_response()
578 if (!token_compare(client, response)) { in handle_response()
580 ret = send_reset(client, response, COAP_RESPONSE_CODE_NOT_FOUND); in handle_response()
587 ret = send_ack(client, response, COAP_CODE_EMPTY); in handle_response()
[all …]
/Zephyr-Core-3.4.0/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-Core-3.4.0/drivers/sdhc/
Dsdhc_spi.c161 uint8_t response; in sdhc_spi_card_busy() local
164 ret = sdhc_spi_rx(config->spi_dev, data->spi_cfg, &response, 1); in sdhc_spi_card_busy()
169 if (response == 0xFF) { in sdhc_spi_card_busy()
184 uint8_t response; in sdhc_spi_wait_unbusy() local
187 ret = sdhc_spi_rx(config->spi_dev, data->spi_cfg, &response, 1); in sdhc_spi_wait_unbusy()
191 if (response == 0xFF) { in sdhc_spi_wait_unbusy()
207 uint8_t *response = dev_data->scratch; in sdhc_spi_response_get() local
208 uint8_t *end = response + rx_len; in sdhc_spi_response_get()
217 response += 8; in sdhc_spi_response_get()
218 while (response < end && ((*response & SD_SPI_START) == SD_SPI_START)) { in sdhc_spi_response_get()
[all …]
/Zephyr-Core-3.4.0/tests/bsim/bluetooth/ll/edtt/hci_test_app/src/
Dmain.c80 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
259 edtt_write((uint8_t *)&response, sizeof(response), EDTTT_BLOCK); in command_status()
[all …]
/Zephyr-Core-3.4.0/drivers/fuel_gauge/max17048/
Dmax17048.c49 int max17048_read_register(const struct device *dev, uint8_t registerId, uint16_t *response) in max17048_read_register() argument
60 *response = sys_get_be16(max17048_buffer); in max17048_read_register()
67 int max17048_adc(const struct device *i2c_dev, uint16_t *response) in max17048_adc() argument
69 return max17048_read_register(i2c_dev, REGISTER_VCELL, response); in max17048_adc()
75 int max17048_voltage(const struct device *i2c_dev, uint16_t *response) in max17048_voltage() argument
77 int rc = max17048_adc(i2c_dev, response); in max17048_voltage()
93 *response = *response * 78125 / 1000000; in max17048_voltage()
100 int max17048_percent(const struct device *i2c_dev, uint8_t *response) in max17048_percent() argument
115 *response = data / 256; in max17048_percent()
123 int max17048_crate(const struct device *i2c_dev, int16_t *response) in max17048_crate() argument
[all …]
/Zephyr-Core-3.4.0/samples/drivers/ipm/ipm_esp32/
DREADME.rst12 message to the APP using the IPM driver, and waits for the APP response
41 PRO_CPU is sending a fake request, waiting remote response...
42 PRO_CPU received a message from APP_CPU : APP_CPU: This is a response
43 PRO_CPU is sending a fake request, waiting remote response...
44 PRO_CPU received a message from APP_CPU : APP_CPU: This is a response
45 PRO_CPU is sending a fake request, waiting remote response...
46 PRO_CPU received a message from APP_CPU : APP_CPU: This is a response
47 PRO_CPU is sending a fake request, waiting remote response...
48 PRO_CPU received a message from APP_CPU : APP_CPU: This is a response
49 PRO_CPU is sending a fake request, waiting remote response...
[all …]
/Zephyr-Core-3.4.0/samples/net/sockets/coap_server/src/
Dcoap-server.c185 struct coap_packet response; in well_known_core_get() local
194 r = coap_well_known_core_get(resource, request, &response, in well_known_core_get()
200 r = send_coap_reply(&response, addr, addr_len); in well_known_core_get()
212 struct coap_packet response; in piggyback_get() local
242 r = coap_packet_init(&response, data, MAX_COAP_MSG_LEN, in piggyback_get()
249 r = coap_append_option_int(&response, COAP_OPTION_CONTENT_FORMAT, in piggyback_get()
255 r = coap_packet_append_payload_marker(&response); in piggyback_get()
267 r = coap_packet_append_payload(&response, (uint8_t *)payload, in piggyback_get()
273 r = send_coap_reply(&response, addr, addr_len); in piggyback_get()
285 struct coap_packet response; in test_del() local
[all …]
/Zephyr-Core-3.4.0/samples/net/sockets/big_http_download/src/
Dbig_http_download.c78 static char response[1024]; variable
118 ptr = strstr(response, "HTTP"); in parse_status()
123 ptr = strstr(response, " "); in parse_status()
142 ptr = strstr(response, ":"); in parse_header()
148 ptr = response; in parse_header()
155 if (strcmp(response, "location") != 0) { in parse_header()
198 st = recv(sock, response + i, 1, 0); in skip_headers()
203 if (state == 0 && response[i] == '\r') { in skip_headers()
205 } else if ((state == 0 || state == 1) && response[i] == '\n') { in skip_headers()
207 response[i + 1] = '\0'; in skip_headers()
[all …]
/Zephyr-Core-3.4.0/scripts/release/
Dlist_issues.py72 response = requests.get("%s" % (url), headers=self.headers)
73 if response.status_code != 200:
76 response.status_code)
78 item = response.json()
83 response = requests.get("%s" % (url), headers=self.headers)
84 if response.status_code != 200:
87 item = response.json()
91 response = requests.get("%s" % (url), headers=self.headers)
92 if response.status_code != 200:
95 response.status_code)
[all …]
/Zephyr-Core-3.4.0/doc/connectivity/networking/api/
Dcoap_client.rst14 The application is notified about the response via a callback that is provided to the API
45 After initialization, the application can send a CoAP request and wait for the response.
51 - There is a response for the request
55 response and means that the current response is part of a blockwise transfer. When the `last_block`
56 is set to true, the response is finished and the client is ready for the next request after
59 If the server responds to the request, the library provides the response to the
60 application through the response callback registered in the request structure.
61 As the response can be a blockwise transfer and the client calls the callback once per each
62 block, the application should be to process all of the blocks to be able to process the response.
64 The following is an example of a very simple response handling function:
[all …]
Dhttp.rst37 req.response = response_cb;
46 If the server responds to the request, the library provides the response to the
47 application through the response callback registered in the request structure.
48 As the library can provide the response in chunks, the application must be able
51 Together with the structure containing the response data, the callback function
54 The following is an example of a very simple response handling function:
/Zephyr-Core-3.4.0/tests/bsim/bluetooth/ll/edtt/gatt_test_app/src/
Dmain.c281 uint16_t response = sys_cpu_to_le16(CMD_GATT_SERVICE_SET_RSP); in switch_service_set() local
292 edtt_write((uint8_t *)&response, sizeof(response), EDTTT_BLOCK); in switch_service_set()
301 uint16_t response = sys_cpu_to_le16(CMD_GATT_SERVICE_NOTIFY_RSP); in handle_service_notify() local
307 edtt_write((uint8_t *)&response, sizeof(response), EDTTT_BLOCK); in handle_service_notify()
316 uint16_t response = sys_cpu_to_le16(CMD_GATT_SERVICE_INDICATE_RSP); in handle_service_indicate() local
322 edtt_write((uint8_t *)&response, sizeof(response), EDTTT_BLOCK); in handle_service_indicate()
/Zephyr-Core-3.4.0/samples/net/sockets/http_get/src/
Dhttp_get.c47 static char response[1024]; variable
115 int len = recv(sock, response, sizeof(response) - 1, 0); in main()
126 response[len] = 0; in main()
127 printf("%s", response); in main()
/Zephyr-Core-3.4.0/samples/subsys/sip_svc/src/
Dmain.c27 void get_voltage_callback(uint32_t c_token, struct sip_svc_response *response) in get_voltage_callback() argument
29 if (response == NULL) { in get_voltage_callback()
33 struct private_data *priv = (struct private_data *)response->priv_data; in get_voltage_callback()
35 uint32_t *resp_data = (uint32_t *)response->resp_data_addr; in get_voltage_callback()
36 uint32_t resp_len = response->resp_data_size / 4; in get_voltage_callback()
/Zephyr-Core-3.4.0/subsys/sd/
Dsdio.c43 card->num_io = (cmd.response[0] & SDIO_OCR_IO_NUMBER) in sdio_send_ocr()
46 ((cmd.response[0] & SDIO_IO_OCR_MASK) == 0)) { in sdio_send_ocr()
47 if (cmd.response[0] & SDIO_OCR_MEM_PRESENT_FLAG) { in sdio_send_ocr()
/Zephyr-Core-3.4.0/doc/services/device_mgmt/smp_groups/
Dsmp_group_0.rst68 Echo response
71 Echo response header fields:
84 CBOR data of successful response:
134 Task statistics response
137 Task statistics response header fields:
148 CBOR data of successful response:
233 Memory pool statistics response
236 Memory pool statistics response header fields:
247 CBOR data of successful response:
321 Data-time get response
[all …]
Dsmp_group_9.rst24 a shell, but both a request and a response are transported over SMP.
66 Shell command line execute response
69 Command line execute response header fields:
80 CBOR data of successful response:
/Zephyr-Core-3.4.0/subsys/sip_svc/
Dsip_svc_agilex_mailbox_shell.c159 static void cmd_send_callback(uint32_t c_token, struct sip_svc_response *response) in cmd_send_callback() argument
161 if (response == NULL) { in cmd_send_callback()
165 struct private_data *priv = (struct private_data *)response->priv_data; in cmd_send_callback()
173 shell_print(sh, "\theader=%08x\n", response->header); in cmd_send_callback()
174 shell_print(sh, "\ta0=%016lx\n", response->a0); in cmd_send_callback()
175 shell_print(sh, "\ta1=%016lx\n", response->a1); in cmd_send_callback()
176 shell_print(sh, "\ta2=%016lx\n", response->a2); in cmd_send_callback()
177 shell_print(sh, "\ta3=%016lx\n", response->a3); in cmd_send_callback()
180 resp_data = (uint32_t *)response->resp_data_addr; in cmd_send_callback()
181 resp_len = response->resp_data_size / 4; in cmd_send_callback()
Dsip_svc_subsys.c398 struct sip_svc_response *response) in sip_svc_callback() argument
435 ((sip_svc_cb_fn)(trans_id_item->arg1))(ctrl->clients[c_idx].token, response); in sip_svc_callback()
468 struct sip_svc_response response; in sip_svc_request_handler() local
528 response.header = SIP_SVC_PROTO_HEADER(error_code, trans_id); in sip_svc_request_handler()
529 response.a0 = res.a0; in sip_svc_request_handler()
530 response.a1 = res.a1; in sip_svc_request_handler()
531 response.a2 = res.a2; in sip_svc_request_handler()
532 response.a3 = res.a3; in sip_svc_request_handler()
533 response.resp_data_addr = request.resp_data_addr; in sip_svc_request_handler()
534 response.resp_data_size = request.resp_data_size; in sip_svc_request_handler()
[all …]
/Zephyr-Core-3.4.0/drivers/sip_svc/
DKconfig.sip_smc_agilex13 int "Size of response buffer used for ASYNC transactions."
17 Size of response buffer used for ASYNC transactions.For Intel Agilex platform
18 the maximum size of response buffer size is 4096 and minimum is 4 bytes.
/Zephyr-Core-3.4.0/subsys/net/lib/mqtt_sn/
Dmqtt_sn.c942 struct mqtt_sn_param response = {.type = MQTT_SN_MSG_TYPE_WILLTOPIC}; in handle_willtopicreq() local
944 response.params.willtopic.qos = client->will_qos; in handle_willtopicreq()
945 response.params.willtopic.retain = client->will_retain; in handle_willtopicreq()
946 response.params.willtopic.topic.data = client->will_topic.data; in handle_willtopicreq()
947 response.params.willtopic.topic.size = client->will_topic.size; in handle_willtopicreq()
949 encode_and_send(client, &response); in handle_willtopicreq()
954 struct mqtt_sn_param response = {.type = MQTT_SN_MSG_TYPE_WILLMSG}; in handle_willmsgreq() local
956 response.params.willmsg.msg.data = client->will_msg.data; in handle_willmsgreq()
957 response.params.willmsg.msg.size = client->will_msg.size; in handle_willmsgreq()
959 encode_and_send(client, &response); in handle_willmsgreq()
[all …]
/Zephyr-Core-3.4.0/subsys/mgmt/mcumgr/
DKconfig24 bool "Legacy rc (result code) response behaviour"
27 This will enable legacy result code response behaviour of having rc
33 response will be empty with the new behaviour enabled, as opposed to
34 the old behaviour where the rc field will be present in the response.
/Zephyr-Core-3.4.0/samples/net/sockets/sntp_client/
DREADME.rst20 for a response. When the response is received, the current epoch time, in
21 seconds, as well as the status code of the response (0 on success), is

1234567