Home
last modified time | relevance | path

Searched refs:client (Results 51 – 75 of 326) sorted by relevance

12345678910>>...14

/Zephyr-latest/doc/connectivity/networking/api/
Dcoap_client.rst3 CoAP client
13 The CoAP client library allows application to send CoAP requests and parse CoAP responses.
16 in the request. The CoAP client handles the communication over sockets.
17 As the CoAP client doesn't create socket it is using, the application is responsible for creating
23 The following is an example of a CoAP client initialization and request sending:
30 coap_client_init(&client, NULL);
43 ret = coap_client_req(&client, sock, &address, &req, -1);
45 Before any requests can be sent, the CoAP client needs to be initialized.
47 Currently only one request can be sent for a single CoAP client at a time. There can be multiple
57 ``last_block`` is set to true, the response is finished and the client is ready for the next request
[all …]
Dmqtt.rst18 Zephyr provides an MQTT client library built on top of BSD sockets API. The
20 is configurable at a per-client basis, with support for MQTT versions
26 is responsible for managing client subscriptions and distributing messages
34 To create an MQTT client, a client context structure and buffers need to be
39 /* Buffers for MQTT client. */
43 /* MQTT client context */
46 Multiple MQTT client instances can be created in the application and managed
49 of the MQTT client and can be shared among MQTT clients:
56 An MQTT client library will notify MQTT events to the application through a
61 void mqtt_evt_handler(struct mqtt_client *client,
[all …]
Dmqtt_sn.rst19 Zephyr provides an MQTT-SN client library built on top of BSD sockets API. The
21 and is configurable at a per-client basis, with support for MQTT-SN version
36 To create an MQTT-SN client, a client context structure and buffers need to be
41 /* Buffers for MQTT client. */
45 /* MQTT-SN client context */
46 static struct mqtt_sn_client client;
48 Multiple MQTT-SN client instances can be created in the application and managed
61 static void evt_cb(struct mqtt_sn_client *client,
72 The client context structure needs to be initialized and set up before it can be
85 …mqtt_sn_client_init(&client, &client_id, &tp.tp, evt_cb, tx_buf, sizeof(tx_buf), rx_buf, sizeof(rx…
[all …]
/Zephyr-latest/samples/net/tftp_client/
DREADME.rst1 .. zephyr:code-sample:: tftp-client
2 :name: TFTP client
5 Use the TFTP client library to get/put files from/to a TFTP server.
13 This TFTP client sample application for Zephyr implements the TFTP client library
34 Build the tftp-client sample application like this:
47 Build the tftp-client sample application for :ref:`native_sim <native_sim>` like this:
90 <inf> net_tftp_client_app: Run TFTP client
94 <inf> net_tftp_client_app: TFTP client get done
95 <inf> net_tftp_client_app: TFTP client put done
/Zephyr-latest/samples/net/sockets/dumb_http_server/src/
Dsocket_dumb_http.c86 int client = accept(serv, (struct sockaddr *)&client_addr, in main() local
88 if (client < 0) { in main()
105 r = recv(client, &c, 1, 0); in main()
135 int sent_len = send(client, data, len, 0); in main()
146 ret = close(client); in main()
/Zephyr-latest/samples/subsys/modbus/tcp_server/
DREADME.rst24 The user can of course try out other client implementations with this sample.
40 On the client side, PC or laptop, the following command connects PyModbus
52 > client.connect
53 > client.write_coil address=0 value=1 slave=1
68 > client.write_coils address=0 values=0,1,1 slave=1
74 > client.read_coils address=0 count=3 slave=1
96 > client.write_register address=0 value=42 slave=1
102 > client.write_registers address=0 values=42,42,42 slave=1
108 > client.read_holding_registers address=0 count=3 slave=1
/Zephyr-latest/subsys/mgmt/mcumgr/grp/img_mgmt_client/src/
Dimg_mgmt_client.c296 void img_mgmt_client_init(struct img_mgmt_client *client, struct smp_client_object *smp_client, in img_mgmt_client_init() argument
299 client->smp_client = smp_client; in img_mgmt_client_init()
300 client->image_list_length = image_list_size; in img_mgmt_client_init()
301 client->image_list = image_list; in img_mgmt_client_init()
304 int img_mgmt_client_upload_init(struct img_mgmt_client *client, size_t image_size, in img_mgmt_client_upload_init() argument
310 client->upload.image_size = image_size; in img_mgmt_client_upload_init()
311 client->upload.offset = 0; in img_mgmt_client_upload_init()
312 client->upload.image_num = image_num; in img_mgmt_client_upload_init()
314 memcpy(client->upload.sha256, image_hash, IMG_MGMT_DATA_SHA_LEN); in img_mgmt_client_upload_init()
315 client->upload.hash_initialized = true; in img_mgmt_client_upload_init()
[all …]
/Zephyr-latest/modules/thrift/src/thrift/server/
DTServerFramework.cpp108 shared_ptr<TTransport> client; in serve() local
132 client.reset(); in serve()
144 client = serverTransport_->accept(); in serve()
146 inputTransport = inputTransportFactory_->getTransport(client); in serve()
147 outputTransport = outputTransportFactory_->getTransport(client); in serve()
160 getProcessor(inputProtocol, outputProtocol, client), in serve()
161 inputProtocol, outputProtocol, eventHandler_, client), in serve()
168 releaseOneDescriptor("client", client); in serve()
/Zephyr-latest/doc/services/modbus/
Dindex.rst13 Modbus communication is based on client/server model.
14 Only one client may be present on the bus. Client can communicate with several
17 Services requested by the client are specified by function codes (FCxx),
20 Zephyr RTOS implementation supports both client and server roles.
28 * :zephyr:code-sample:`modbus-rtu-server` and :zephyr:code-sample:`modbus-rtu-client` samples give
29 the possibility to try out RTU server and RTU client implementation with an evaluation board.
/Zephyr-latest/tests/net/lib/mqtt_sn_client/src/
Dmqtt_sn_client.c31 struct mqtt_sn_client *client; member
43 static int msg_sendto(struct mqtt_sn_client *client, void *buf, size_t sz, const void *dest_addr, in msg_sendto() argument
48 msg_send_data.client = client; in msg_sendto()
77 static void evt_cb(struct mqtt_sn_client *client, const struct mqtt_sn_evt *evt) in evt_cb() argument
101 static ssize_t tp_recvfrom(struct mqtt_sn_client *client, void *buffer, size_t length, in tp_recvfrom() argument
115 int tp_poll(struct mqtt_sn_client *client) in tp_poll() argument
142 static int input(struct mqtt_sn_client *client, void *buf, size_t sz, in input() argument
150 return mqtt_sn_input(client); in input()
153 static void mqtt_sn_connect_no_will(struct mqtt_sn_client *client) in mqtt_sn_connect_no_will() argument
159 err = mqtt_sn_client_init(client, &client_id, &transport, evt_cb, tx, sizeof(tx), rx, in mqtt_sn_connect_no_will()
[all …]
/Zephyr-latest/samples/net/sockets/echo_async/src/
Dsocket_echo.c202 int client = accept(fd, (struct sockaddr *)&client_addr, in main() local
206 if (client < 0) { in main()
213 addr_str, client); in main()
214 if (pollfds_add(client) < 0) { in main()
217 res = send(client, msg, sizeof(msg) - 1, 0); in main()
221 close(client); in main()
223 setblocking(client, false); in main()
/Zephyr-latest/tests/net/lib/mqtt/v3_1_1/mqtt_client/src/
Dmain.c84 static void prepare_client_fds(struct mqtt_client *client) in prepare_client_fds() argument
86 client_fds[0].fd = client->transport.tcp.sock; in prepare_client_fds()
436 static void publish_handler(struct mqtt_client *const client, in publish_handler() argument
448 ret = mqtt_readall_publish_payload(client, buf, test_ctx.payload_left); in publish_handler()
458 static void mqtt_evt_handler(struct mqtt_client *const client, in mqtt_evt_handler() argument
476 publish_handler(client, evt); in mqtt_evt_handler()
483 ret = mqtt_publish_qos1_ack(client, &ack); in mqtt_evt_handler()
492 ret = mqtt_publish_qos2_receive(client, &ack); in mqtt_evt_handler()
515 ret = mqtt_publish_qos2_release(client, &rel_param); in mqtt_evt_handler()
556 static void client_init(struct mqtt_client *client) in client_init() argument
[all …]
/Zephyr-latest/samples/net/dhcpv4_client/
DREADME.rst1 .. zephyr:code-sample:: dhcpv4-client
2 :name: DHCPv4 client
5 Start a DHCPv4 client to obtain an IPv4 address from a DHCPv4 server.
10 This application starts a DHCPv4 client, gets an IPv4 address from the
22 Running DHCPv4 client in Linux Host
81 Once DHCPv4 client address negotiation completed with server, details
86 [00:00:00.000,000] <inf> net_dhcpv4_client_sample: Run dhcpv4 client
94 To verify the Zephyr application client is running and has received
173 Once DHCPv4 client address negotiation completed with server, details
179 [00:00:00.000,000] <inf> net_dhcpv4_client_sample: Run dhcpv4 client
[all …]
/Zephyr-latest/subsys/mgmt/mcumgr/grp/os_mgmt_client/src/
Dos_mgmt_client.c36 void os_mgmt_client_init(struct os_mgmt_client *client, struct smp_client_object *smp_client) in os_mgmt_client_init() argument
38 client->smp_client = smp_client; in os_mgmt_client_init()
54 int os_mgmt_client_reset(struct os_mgmt_client *client) in os_mgmt_client_reset() argument
60 active_client = client; in os_mgmt_client_reset()
122 int os_mgmt_client_echo(struct os_mgmt_client *client, const char *echo_string, size_t max_len) in os_mgmt_client_echo() argument
130 active_client = client; in os_mgmt_client_echo()
/Zephyr-latest/subsys/net/l2/wifi/
DCMakeLists.txt38 ${ZEPHYR_BASE}/samples/net/wifi/test_certs/client.pem
39 ${gen_dir}/client.pem.inc
44 ${ZEPHYR_BASE}/samples/net/wifi/test_certs/client-key.pem
45 ${gen_dir}/client-key.pem.inc
62 ${ZEPHYR_BASE}/samples/net/wifi/test_certs/client-key2.pem
63 ${gen_dir}/client-key2.pem.inc
/Zephyr-latest/subsys/bluetooth/audio/
Dcsip_set_member.c123 struct csip_client *client; in notify_clients() local
125 client = &svc_inst->clients[i]; in notify_clients()
127 if (atomic_test_bit(client->flags, FLAG_ACTIVE)) { in notify_clients()
129 bt_addr_le_eq(bt_conn_get_dst(excluded_client), &client->addr)) { in notify_clients()
133 atomic_set_bit(client->flags, flag); in notify_clients()
480 struct csip_client *client; in csip_security_changed() local
482 client = &svc_inst->clients[i]; in csip_security_changed()
484 if (atomic_test_bit(client->flags, FLAG_NOTIFY_LOCK) && in csip_security_changed()
485 bt_addr_le_eq(bt_conn_get_dst(conn), &client->addr)) { in csip_security_changed()
514 struct csip_client *client; in handle_csip_disconnect() local
[all …]
/Zephyr-latest/include/zephyr/net/
Dcoap_client.h129 int coap_client_init(struct coap_client *client, const char *info);
148 int coap_client_req(struct coap_client *client, int sock, const struct sockaddr *addr,
159 void coap_client_cancel_requests(struct coap_client *client);
174 void coap_client_cancel_request(struct coap_client *client, struct coap_client_request *req);
/Zephyr-latest/samples/subsys/modbus/tcp_gateway/
DREADME.rst24 The user can of course try out other client implementations with this sample.
44 On the client side, PC or laptop, the following command connects PyModbus
56 > client.connect
57 > client.write_coil address=0 value=1 slave=1
72 > client.write_coils address=0 values=0,1,1 slave=1
78 > client.read_coils address=0 count=3 slave=1
100 > client.write_register address=0 value=42 slave=1
106 > client.write_registers address=0 values=42,42,42 slave=1
112 > client.read_holding_registers address=0 count=3 slave=1
/Zephyr-latest/subsys/net/lib/mqtt/
DKconfig52 When a client connects to a MQTT broker using a persistent session,
53 the message broker saves all subscriptions. When the client
55 and new QoS 1 messages published to topics to which the client is
56 subscribed. When the client reconnects to the persistent session,
58 the client. Setting this flag to 0 allows the client to create a
/Zephyr-latest/samples/drivers/video/tcpserversink/src/
Dmain.c42 int i, ret, sock, client; in main() local
119 client = accept(sock, (struct sockaddr *)&client_addr, &client_addr_len); in main()
120 if (client < 0) { in main()
152 ret = sendall(client, vbuf->buffer, vbuf->bytesused); in main()
156 close(client); in main()
/Zephyr-latest/samples/modules/thrift/hello/client/src/
Dmain.cpp115 HelloClient client(protocol); in main() local
119 client.ping(); in main()
121 client.echo(s, "Hello, world!"); in main()
123 client.counter(); in main()
/Zephyr-latest/subsys/net/lib/dhcpv6/
DKconfig13 bool "DHCPv6 client"
28 module-str = Log level for DHCPv6 client
29 module-help = Enables DHCPv6 client code to output debug messages.
/Zephyr-latest/subsys/mgmt/mcumgr/smp_client/
DKconfig21 This define lifetime for SMP client send request. This configure is used if a request
29 The time (in ms) which the SMP client will wait for a response before re-sending
33 int "SMP client max buffer count"
36 Define how many active requests that the client can handle
/Zephyr-latest/samples/net/sockets/echo_async_select/src/
Dsocket_echo_select.c192 int client = accept(fd, (struct sockaddr *)&client_addr, local
199 addr_str, client);
200 if (pollfds_add(client) < 0) {
202 WRITE(client, msg, sizeof(msg) - 1);
203 close(client);
205 setblocking(client, false);
/Zephyr-latest/samples/net/sockets/http_client/
DREADME.rst1 .. zephyr:code-sample:: sockets-http-client
5 Implement an HTTP(S) client that issues a variety of HTTP requests.
10 This sample application implements an HTTP(S) client that will do an HTTP
27 Build the http-client sample application like this:
62 You can run this ``http-client`` sample application in QEMU
73 Run ``http-client`` application in QEMU:
84 before you start the http-client application in QEMU.

12345678910>>...14