/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_pull_context.c | 38 char uri[LWM2M_PACKAGE_URI_LEN]; member 128 if (strncmp(context.uri, "http", 4) == 0) { in transfer_request() 130 } else if (strncmp(context.uri, "coap", 4) == 0) { in transfer_request() 145 ret = http_parser_parse_url(context.uri, strlen(context.uri), 0, &parser); in transfer_request() 147 LOG_ERR("Invalid firmware url: %s", context.uri); in transfer_request() 155 cursor = context.uri + off; in transfer_request() 190 ret = coap_packet_append_option(&msg->cpkt, COAP_OPTION_PROXY_URI, context.uri, in transfer_request() 191 strlen(context.uri)); in transfer_request() 193 LOG_ERR("Error adding PROXY_URI '%s'", context.uri); in transfer_request() 387 server_addr = context.uri; in firmware_transfer() [all …]
|
D | lwm2m_pull_context.h | 28 int lwm2m_pull_context_start_transfer(char *uri, struct requesting_object req, k_timeout_t timeout);
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | tbs_internal.h | 189 static inline bool bt_tbs_valid_uri(const uint8_t *uri, size_t uri_len) in bt_tbs_valid_uri() argument 191 if (!uri) { in bt_tbs_valid_uri() 197 } else if (uri[0] < FIRST_PRINTABLE_ASCII_CHAR) { in bt_tbs_valid_uri() 203 if (uri[i] == ':' && uri[i + 1] >= FIRST_PRINTABLE_ASCII_CHAR) { in bt_tbs_valid_uri() 249 uint8_t uri[0]; member 287 uint8_t uri[CONFIG_BT_TBS_MAX_URI_LENGTH]; member 292 char uri[CONFIG_BT_TBS_MAX_URI_LENGTH + 1]; member
|
D | tbs.c | 269 static struct tbs_inst *lookup_inst_by_uri_scheme(const uint8_t *uri, uint8_t uri_len) in lookup_inst_by_uri_scheme() argument 279 if (uri[i] == ':') { in lookup_inst_by_uri_scheme() 280 (void)memcpy(uri_scheme, uri, i); in lookup_inst_by_uri_scheme() 353 static struct bt_tbs_call *call_alloc(struct tbs_inst *inst, uint8_t state, const uint8_t *uri, in call_alloc() argument 378 (void)memcpy(free_call->remote_uri, uri, uri_len); in call_alloc() 754 inc_call_target->call_index, inc_call_target->uri); in read_incoming_uri() 762 val_len = sizeof(inc_call_target->call_index) + strlen(inc_call_target->uri); in read_incoming_uri() 948 if (!bt_tbs_valid_uri(ccp->uri, uri_len)) { in originate_call() 952 call = call_alloc(inst, BT_TBS_CALL_STATE_DIALING, ccp->uri, uri_len); in originate_call() 1063 char uri[CONFIG_BT_TBS_MAX_URI_LENGTH + 1]; in notify_app() local [all …]
|
D | tbs_client.c | 213 uint8_t *uri; in net_buf_pull_call() local 236 uri = net_buf_simple_pull_mem(buf, uri_len); in net_buf_pull_call() 243 (void)memcpy(call->remote_uri, uri, uri_len); in net_buf_pull_call() 522 const char *uri = parse_string_value(data, length, in incoming_uri_notify_handler() local 525 LOG_DBG("%s", uri); in incoming_uri_notify_handler() 527 call_uri_changed(conn, 0, tbs_index(conn, tbs_inst), uri); in incoming_uri_notify_handler() 649 const char *uri = parse_string_value(data, length, in in_call_notify_handler() local 652 LOG_DBG("%s", uri); in in_call_notify_handler() 654 remote_uri_changed(conn, 0, tbs_index(conn, tbs_inst), uri); in in_call_notify_handler() 1939 const char *uri) in bt_tbs_client_originate_call() argument [all …]
|
/Zephyr-latest/samples/bluetooth/tmap_peripheral/src/ |
D | ccp_call_ctrl.c | 146 char uri[CONFIG_BT_TBS_MAX_URI_LENGTH]; in ccp_originate_call() local 148 strcpy(uri, remote_uri); in ccp_originate_call() 149 strcat(uri, URI_SEPARATOR); in ccp_originate_call() 150 strcat(uri, CALLER_ID); in ccp_originate_call() 152 err = bt_tbs_client_originate_call(default_conn, BT_TBS_GTBS_INDEX, uri); in ccp_originate_call()
|
/Zephyr-latest/tests/net/lib/lwm2m/lwm2m_registry/src/ |
D | lwm2m_registry.c | 361 static const char uri[] = "coap://127.0.0.1"; in ZTEST() local 370 ret = lwm2m_set_string(&path, uri); in ZTEST() 374 zassert_equal(len, sizeof(uri)); in ZTEST() 380 zassert_equal(memcmp(uri, buf, sizeof(uri)), 0); in ZTEST() 381 ret = lwm2m_get_string(&path, buf, sizeof(uri)); in ZTEST() 383 ret = lwm2m_get_string(&path, buf, strlen(uri)); in ZTEST() 392 ret = lwm2m_set_string(&path, uri); in ZTEST() 396 zassert_equal(len, strlen(uri)); /* No terminator counted in data length */ in ZTEST() 402 zassert_equal(memcmp(uri, buf, sizeof(uri)), 0); in ZTEST() 403 ret = lwm2m_get_string(&path, buf, sizeof(uri)); in ZTEST() [all …]
|
/Zephyr-latest/tests/net/lib/coap/src/ |
D | main.c | 39 const char *uri, uint16_t len); 455 const char *uri; in ZTEST() local 458 uri = "/k"; in ZTEST() 459 r = _coap_match_path_uri(resource_path, uri, strlen(uri)); in ZTEST() 460 zassert_false(r, "Matching %s failed", uri); in ZTEST() 462 uri = "/s"; in ZTEST() 463 r = _coap_match_path_uri(resource_path, uri, strlen(uri)); in ZTEST() 464 zassert_true(r, "Matching %s failed", uri); in ZTEST() 466 uri = "/foobar"; in ZTEST() 467 r = _coap_match_path_uri(resource_path, uri, strlen(uri)); in ZTEST() [all …]
|
/Zephyr-latest/subsys/net/lib/coap/ |
D | coap_link_format.c | 72 const char *uri, uint16_t len) in match_path_uri() argument 81 if (len <= 1U || uri[0] != '/') { in match_path_uri() 100 if (uri[k] == '*') { in match_path_uri() 106 if (uri[k] != (*p)[j]) { in match_path_uri() 181 const char *uri = (char *) query->value + href_len + 1; in match_queries_resource() local 184 return match_path_uri(resource->path, uri, uri_len); in match_queries_resource() 732 const char *uri, uint16_t len) in _coap_match_path_uri() argument 734 return match_path_uri(path, uri, len); in _coap_match_path_uri()
|
/Zephyr-latest/include/zephyr/bluetooth/mesh/ |
D | dfd_srv.h | 142 const char *uri, uint8_t uri_len, 234 uint8_t uri[CONFIG_BT_MESH_DFU_URI_MAXLEN]; member
|
D | dfu.h | 148 const char *uri; member
|
D | main.h | 124 const char *uri; member
|
/Zephyr-latest/include/zephyr/bluetooth/audio/ |
D | tbs.h | 214 const char *uri); 331 int bt_tbs_originate(uint8_t bearer_index, char *uri, uint8_t *call_index); 801 const char *uri); 832 const char *uri);
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | pb_gatt_srv.c | 228 if (!prov->uri) { in gatt_prov_adv_create() 232 uri_len = strlen(prov->uri); in gatt_prov_adv_create() 241 prov_sd[prov_sd_len].data = (const uint8_t *)prov->uri; in gatt_prov_adv_create()
|
D | beacon.c | 365 if (prov->uri && bt_mesh_s1_str(prov->uri, uri_hash) == 0) { in unprovisioned_beacon_send() 377 if (prov->uri) { in unprovisioned_beacon_send() 387 len = strlen(prov->uri); in unprovisioned_beacon_send() 391 net_buf_simple_add_mem(&adv->b, prov->uri, len); in unprovisioned_beacon_send()
|
D | dfu_srv.c | 162 if (srv->imgs[idx].uri) { in handle_info_get() 163 entry_len += strlen(srv->imgs[idx].uri); in handle_info_get() 174 if (srv->imgs[idx].uri) { in handle_info_get() 175 size_t len = strlen(srv->imgs[idx].uri); in handle_info_get() 178 net_buf_simple_add_mem(&rsp, srv->imgs[idx].uri, len); in handle_info_get()
|
D | dfd_srv.c | 568 uint8_t *uri; in handle_upload_start_oob() local 578 uri = net_buf_simple_pull_mem(buf, uri_len); in handle_upload_start_oob() 583 LOG_HEXDUMP_DBG(uri, uri_len, "URI"); in handle_upload_start_oob() 591 !memcmp(uri, srv->upload.oob.uri, uri_len) && in handle_upload_start_oob() 630 memcpy(srv->upload.oob.uri, uri, uri_len); in handle_upload_start_oob() 636 int status = srv->cb->start_oob_upload(srv, srv->upload.slot, srv->upload.oob.uri, in handle_upload_start_oob()
|
D | rpr_srv.c | 682 if (prov->uri && get_ad_type(ad, ad_count, BT_DATA_URI)) { in handle_extended_scan_start() 683 uint8_t uri_len = strlen(prov->uri); in handle_extended_scan_start() 688 net_buf_simple_add_mem(&rsp, prov->uri, in handle_extended_scan_start() 690 LOG_DBG("URI added: %s", prov->uri); in handle_extended_scan_start()
|
/Zephyr-latest/tests/bluetooth/tester/src/audio/btp/ |
D | btp_tbs.h | 66 uint8_t uri[0]; member
|
D | btp_ccp.h | 40 char uri[0]; member
|
/Zephyr-latest/tests/bluetooth/tester/src/audio/ |
D | btp_ccp.c | 364 err = (conn) ? bt_tbs_client_originate_call(conn, cp->inst_index, cp->uri) : -ENOTCONN; in ccp_originate_call() 942 char uri[CONFIG_BT_TBS_MAX_URI_LENGTH]; in tbs_originate() local 947 if (cp->uri_len >= sizeof(uri)) { in tbs_originate() 951 memcpy(uri, cp->uri, cp->uri_len); in tbs_originate() 952 uri[cp->uri_len] = '\0'; in tbs_originate() 954 err = bt_tbs_originate(cp->index, uri, &call_index); in tbs_originate() 1094 static bool btp_tbs_originate_call_cb(struct bt_conn *conn, uint8_t call_index, const char *uri) in btp_tbs_originate_call_cb() argument
|
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/ |
D | ccp.rst | 48 <uri> 186 originate :Originate call [<instance_index>] <uri>
|
/Zephyr-latest/tests/bluetooth/tester/src/ |
D | btp_mesh.c | 167 uint8_t uri[CONFIG_BT_MESH_DFU_URI_MAXLEN]; member 183 const char *uri, uint8_t uri_len, in dfd_srv_start_oob_upload() argument 188 memcpy(dfd_srv_oob_ctx.uri, uri, uri_len); in dfd_srv_start_oob_upload() 256 if (IN_RANGE(dfd_srv_oob_ctx.uri[i], 48, 57) || /* DIGIT */ in oob_check_handler() 257 IN_RANGE(dfd_srv_oob_ctx.uri[i], 65, 90) || /* ALPHA UPPER CASE */ in oob_check_handler() 258 IN_RANGE(dfd_srv_oob_ctx.uri[i], 97, 122) || /* ALPHA LOWER CASE */ in oob_check_handler() 259 dfd_srv_oob_ctx.uri[i] == '.' || in oob_check_handler() 260 dfd_srv_oob_ctx.uri[i] == '+' || in oob_check_handler() 261 dfd_srv_oob_ctx.uri[i] == '-') { in oob_check_handler() 262 scheme[i] = dfd_srv_oob_ctx.uri[i]; in oob_check_handler() [all …]
|
/Zephyr-latest/ |
D | README.rst | 14 …<a href="https://scorecard.dev/viewer/?uri=github.com/zephyrproject-rtos/zephyr"><img src="https:/…
|
/Zephyr-latest/subsys/bluetooth/mesh/shell/ |
D | dfu.c | 625 if (img->uri) { in dfu_img_cb() 626 shell_print(bt_mesh_shell_ctx_shell, "\tURI: %s", img->uri); in dfu_img_cb()
|