Lines Matching +full:line +full:- +full:addresses
1 .. zephyr:code-sample:: mqtt-publisher
3 :relevant-api: mqtt_socket
18 .. _MQTT V3.1.1 spec: http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/mqtt-v3.1.1.html
26 - Linux machine
27 - Freedom Board (FRDM-K64F)
28 - Mosquitto server: any version that supports MQTT v3.1.1. This sample
30 - Mosquitto subscriber
31 - LAN for testing purposes (Ethernet)
36 Currently, this sample application only supports static IP addresses.
37 Open the :file:`src/config.h` file and set the IP addresses according
39 Alternatively, set the IP addresses in the :file:`prj.conf` file.
45 .. code-block:: c
51 .. code-block:: c
57 .. code-block:: c
63 .. code-block:: c
70 .. code-block:: c
78 .. code-block:: c
87 .. code-block:: cfg
94 .. zephyr-app-commands::
95 :zephyr-app: samples/net/mqtt_publisher
103 .. code-block:: console
120 .. code-block:: none
128 .. code-block:: console
130 $ sudo mosquitto -v -p 1883 # For mosquitto < 2.0
131 $ sudo mosquitto -v -c mosquitto.conf # For mosquitto >= 2.0
135 .. code-block:: console
137 $ mosquitto_sub -t sensors
150 - Download the server's CA certificate file in DER format from
152 - In :file:`src/test_certs.h`, set ``ca_certificate[]`` using the certificate
156 - In :file:`src/config.h`, set SERVER_ADDR to the IP address to connect to,
158 - In :file:`src/main.c`, set TLS_SNI_HOSTNAME to ``"test.mosquitto.org"``
160 - Build the sample by specifying ``-DEXTRA_CONF_FILE=overlay-tls.conf``
163 - Flash the binary onto the device to run the sample:
165 .. code-block:: console
173 specifying ``-DEXTRA_CONF_FILE=overlay-tls-offload.conf`` when running ``west
182 To enable it, use ``-DEXTRA_CONF_FILE=overlay-socks5.conf`` when running ``west
191 .. code-block:: console
193 $ ssh -N -D 0.0.0.0:1080 localhost
198 .. code-block:: c
208 uses dynamic IP addresses on this board.
232 .. code-block:: cfg
236 .. code-block:: console
238 [dev/eth_mcux] [INF] eth_0_init: Enabled 100M full-duplex mode.
285 The line:
287 .. code-block:: console
289 [try_to_connect:220] mqtt_connect: -5 <ERROR>
298 .. code-block:: console
300 $ mosquitto_sub -t sensors
319 .. code-block:: console
321 $ sudo mosquitto -v
322 1485663791: mosquitto version 1.3.4 (build date 2014-08-17 00:14:52-0300) starting
376 Wi-Fi
379 The IPv4 Wi-Fi support can be enabled in the sample with
380 :ref:`Wi-Fi snippet <snippet-wifi-ipv4>`.