]> granicus.if.org Git - esp-idf/commitdiff
MQTT: update default broker URL for examples
authorMarius Vikhammer <marius.vikhammer@espressif.com>
Fri, 27 Sep 2019 01:35:26 +0000 (09:35 +0800)
committerbot <bot@espressif.com>
Tue, 15 Oct 2019 09:35:23 +0000 (09:35 +0000)
The MQTT broker URL used as default in the examples has ceased operation. All examples and documention have been updated to point to the new domain mqtt.eclipse.org.
This also required an update of the python example test scripts to use TLS 1.2

26 files changed:
components/mqtt/weekend_test/mqtt_publish_test.py
docs/en/api-reference/protocols/mqtt.rst
examples/protocols/mqtt/publish_test/CMakeLists.txt
examples/protocols/mqtt/publish_test/main/Kconfig.projbuild
examples/protocols/mqtt/publish_test/main/component.mk
examples/protocols/mqtt/publish_test/main/mqtt_eclipse_org.pem [moved from examples/protocols/mqtt/publish_test/main/iot_eclipse_org.pem with 100% similarity]
examples/protocols/mqtt/publish_test/main/publish_test.c
examples/protocols/mqtt/ssl/CMakeLists.txt
examples/protocols/mqtt/ssl/README.md
examples/protocols/mqtt/ssl/main/Kconfig.projbuild
examples/protocols/mqtt/ssl/main/app_main.c
examples/protocols/mqtt/ssl/main/component.mk
examples/protocols/mqtt/ssl/main/mqtt_eclipse_org.pem [moved from examples/protocols/mqtt/ssl/main/iot_eclipse_org.pem with 100% similarity]
examples/protocols/mqtt/ssl/mqtt_ssl_example_test.py
examples/protocols/mqtt/tcp/main/Kconfig.projbuild
examples/protocols/mqtt/ws/README.md
examples/protocols/mqtt/ws/main/Kconfig.projbuild
examples/protocols/mqtt/ws/mqtt_ws_example_test.py
examples/protocols/mqtt/wss/CMakeLists.txt
examples/protocols/mqtt/wss/README.md
examples/protocols/mqtt/wss/main/Kconfig.projbuild
examples/protocols/mqtt/wss/main/app_main.c
examples/protocols/mqtt/wss/main/component.mk
examples/protocols/mqtt/wss/main/mqtt_eclipse_org.pem [moved from examples/protocols/mqtt/wss/main/iot_eclipse_org.pem with 100% similarity]
examples/protocols/mqtt/wss/mqtt_wss_example_test.py
examples/protocols/pppos_client/main/pppos_client_main.c

index 9263f3ada7005b8759a1efe1c1248a6dc75e5512..7b738a81a5adeeb31ea15a457aaba47585fa4694 100644 (file)
@@ -80,13 +80,12 @@ def test_single_config(dut, transport, qos, repeat, published):
     try:
         if transport in ["ws", "wss"]:
             client = mqtt.Client(transport="websockets")
-            client.ws_set_options(path="/ws", headers=None)
         else:
             client = mqtt.Client()
         client.on_connect = on_connect
         client.on_message = on_message
         if transport in ["ssl", "wss"]:
-            client.tls_set(None, None, None, cert_reqs=ssl.CERT_NONE, tls_version=ssl.PROTOCOL_TLSv1, ciphers=None)
+            client.tls_set(None, None, None, cert_reqs=ssl.CERT_NONE, tls_version=ssl.PROTOCOL_TLSv1_2, ciphers=None)
             client.tls_insecure_set(True)
         print("Connecting...")
         client.connect(broker_host[transport], broker_port[transport], 60)
index cb956755a62577a5773b542742f33596d6c3f985..80d6270b9f2579a3404f512c775569de6d501e9a 100644 (file)
@@ -32,30 +32,30 @@ URI
 -  Curently support ``mqtt``, ``mqtts``, ``ws``, ``wss`` schemes
 -  MQTT over TCP samples:
 
-   -  ``mqtt://iot.eclipse.org``: MQTT over TCP, default port 1883:
-   -  ``mqtt://iot.eclipse.org:1884`` MQTT over TCP, port 1884:
-   -  ``mqtt://username:password@iot.eclipse.org:1884`` MQTT over TCP,
+   -  ``mqtt://mqtt.eclipse.org``: MQTT over TCP, default port 1883:
+   -  ``mqtt://mqtt.eclipse.org:1884`` MQTT over TCP, port 1884:
+   -  ``mqtt://username:password@mqtt.eclipse.org:1884`` MQTT over TCP,
       port 1884, with username and password
 
 -  MQTT over SSL samples:
 
-   -  ``mqtts://iot.eclipse.org``: MQTT over SSL, port 8883
-   -  ``mqtts://iot.eclipse.org:8884``: MQTT over SSL, port 8884
+   -  ``mqtts://mqtt.eclipse.org``: MQTT over SSL, port 8883
+   -  ``mqtts://mqtt.eclipse.org:8884``: MQTT over SSL, port 8884
 
 -  MQTT over Websocket samples:
 
-   -  ``ws://iot.eclipse.org:80/ws``
+   -  ``ws://mqtt.eclipse.org:80/mqtt``
 
 -  MQTT over Websocket Secure samples:
 
-   -  ``wss://iot.eclipse.org:443/ws``
+   -  ``wss://mqtt.eclipse.org:443/mqtt``
 
 -  Minimal configurations:
 
 .. code:: c
 
     const esp_mqtt_client_config_t mqtt_cfg = {
-        .uri = "mqtt://iot.eclipse.org",
+        .uri = "mqtt://mqtt.eclipse.org",
         // .user_context = (void *)your_context
     };
     esp_mqtt_client_handle_t client = esp_mqtt_client_init(&mqtt_cfg);
@@ -71,25 +71,25 @@ URI
 .. code:: c
 
     const esp_mqtt_client_config_t mqtt_cfg = {
-        .uri = "mqtt://iot.eclipse.org:1234",
+        .uri = "mqtt://mqtt.eclipse.org:1234",
         .port = 4567,
     };
-    //MQTT client will connect to iot.eclipse.org using port 4567
+    //MQTT client will connect to mqtt.eclipse.org using port 4567
 
 SSL
 ^^^
 
--  Get certificate from server, example: ``iot.eclipse.org``
-   ``openssl s_client -showcerts -connect iot.eclipse.org:8883 </dev/null 2>/dev/null|openssl x509 -outform PEM >iot_eclipse_org.pem``
+-  Get certificate from server, example: ``mqtt.eclipse.org``
+   ``openssl s_client -showcerts -connect mqtt.eclipse.org:8883 </dev/null 2>/dev/null|openssl x509 -outform PEM >mqtt_eclipse_org.pem``
 -  Check the sample application: ``examples/mqtt_ssl``
 -  Configuration:
 
 .. code:: cpp
 
     const esp_mqtt_client_config_t mqtt_cfg = {
-        .uri = "mqtts://iot.eclipse.org:8883",
+        .uri = "mqtts://mqtt.eclipse.org:8883",
         .event_handle = mqtt_event_handler,
-        .cert_pem = (const char *)iot_eclipse_org_pem_start,
+        .cert_pem = (const char *)mqtt_eclipse_org_pem_start,
     };
 
 For more options on ``esp_mqtt_client_config_t``, please refer to API reference below
index 2203d063f7d9e9a19a5882e65ea17b53b3bf3520..4a46af3e58a88c4f8cedbe441275ad27967eae98 100644 (file)
@@ -10,4 +10,4 @@ include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 
 project(mqtt_publish)
 
-target_add_binary_data(mqtt_publish.elf "main/iot_eclipse_org.pem" TEXT)
+target_add_binary_data(mqtt_publish.elf "main/mqtt_eclipse_org.pem" TEXT)
index 8360e573d27ffef30e08cf850e61eb1f71f4aa5d..bf4197482e4cdfbdfd88a8c389a4ecb62ff88b62 100644 (file)
@@ -2,25 +2,25 @@ menu "Example Configuration"
 
     config EXAMPLE_BROKER_SSL_URI
         string "Broker SSL URL"
-        default "mqtts://iot.eclipse.org:8883"
+        default "mqtts://mqtt.eclipse.org:8883"
         help
             URL of an mqtt broker for ssl transport
 
     config EXAMPLE_BROKER_TCP_URI
         string "Broker TCP URL"
-        default "mqtt://iot.eclipse.org:1883"
+        default "mqtt://mqtt.eclipse.org:1883"
         help
             URL of an mqtt broker for tcp transport
 
     config EXAMPLE_BROKER_WS_URI
         string "Broker WS URL"
-        default "ws://iot.eclipse.org:80/ws"
+        default "ws://mqtt.eclipse.org:80/mqtt"
         help
             URL of an mqtt broker for ws transport
 
     config EXAMPLE_BROKER_WSS_URI
         string "Broker WSS URL"
-        default "wss://iot.eclipse.org:443/ws"
+        default "wss://mqtt.eclipse.org:443/mqtt"
         help
             URL of an mqtt broker for wss transport
 
index 797c4a1f6798c6381e07de0e696d739cf370dfdb..597752fb9b69c76ecfe897bae47bd3162be441bc 100644 (file)
@@ -1 +1 @@
-COMPONENT_EMBED_TXTFILES := iot_eclipse_org.pem
+COMPONENT_EMBED_TXTFILES := mqtt_eclipse_org.pem
index 9183bbb8bb383c610d61efc02ecc787fa063c233..918f9a191a8f82e7c5b2c120c9f38b5cb2da348e 100644 (file)
@@ -46,11 +46,11 @@ static int qos_test = 0;
 
 
 #if CONFIG_EXAMPLE_BROKER_CERTIFICATE_OVERRIDDEN == 1
-static const uint8_t iot_eclipse_org_pem_start[]  = "-----BEGIN CERTIFICATE-----\n" CONFIG_EXAMPLE_BROKER_CERTIFICATE_OVERRIDE "\n-----END CERTIFICATE-----";
+static const uint8_t mqtt_eclipse_org_pem_start[]  = "-----BEGIN CERTIFICATE-----\n" CONFIG_EXAMPLE_BROKER_CERTIFICATE_OVERRIDE "\n-----END CERTIFICATE-----";
 #else
-extern const uint8_t iot_eclipse_org_pem_start[]   asm("_binary_iot_eclipse_org_pem_start");
+extern const uint8_t mqtt_eclipse_org_pem_start[]   asm("_binary_mqtt_eclipse_org_pem_start");
 #endif
-extern const uint8_t iot_eclipse_org_pem_end[]   asm("_binary_iot_eclipse_org_pem_end");
+extern const uint8_t mqtt_eclipse_org_pem_end[]   asm("_binary_mqtt_eclipse_org_pem_end");
 
 static esp_err_t mqtt_event_handler(esp_mqtt_event_handle_t event)
 {
@@ -127,7 +127,7 @@ static void mqtt_app_start(void)
     mqtt_event_group = xEventGroupCreate();
     const esp_mqtt_client_config_t mqtt_cfg = {
         .event_handle = mqtt_event_handler,
-        .cert_pem = (const char *)iot_eclipse_org_pem_start,
+        .cert_pem = (const char *)mqtt_eclipse_org_pem_start,
     };
 
     ESP_LOGI(TAG, "[APP] Free memory: %d bytes", esp_get_free_heap_size());
index a7b2c442044b93eb8542c8089d112495c798af1d..2b78a842b82704897ed097cd19d948bc2db63793 100644 (file)
@@ -9,4 +9,4 @@ set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_exam
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(mqtt_ssl)
 
-target_add_binary_data(mqtt_ssl.elf "main/iot_eclipse_org.pem" TEXT)
+target_add_binary_data(mqtt_ssl.elf "main/mqtt_eclipse_org.pem" TEXT)
index e2693729d4d4818452c19c73513515e38411cb22..aa96a6841a56d467cb46bd0003f86cec131bc7f5 100644 (file)
@@ -2,7 +2,7 @@
 
 (See the README.md file in the upper level 'examples' directory for more information about examples.)
 
-This example connects to the broker iot.eclipse.org using ssl transport and as a demonstration subscribes/unsubscribes and send a message on certain topic.
+This example connects to the broker mqtt.eclipse.org using ssl transport and as a demonstration subscribes/unsubscribes and send a message on certain topic.
 (Please note that the public broker is maintained by the community so may not be always available, for details please see this [disclaimer](https://iot.eclipse.org/getting-started/#sandboxes))
 
 It uses ESP-MQTT library which implements mqtt client to connect to mqtt broker.
@@ -19,13 +19,13 @@ This example can be executed on any ESP32 board, the only required interface is
 * Configure Wi-Fi or Ethernet under "Example Connection Configuration" menu. See "Establishing Wi-Fi or Ethernet Connection" section in [examples/protocols/README.md](../../README.md) for more details.
 * When using Make build system, set `Default serial port` under `Serial flasher config`.
 
-PEM certificate for this example could be extracted from an openssl `s_client` command connecting to iot.eclipse.org.
+PEM certificate for this example could be extracted from an openssl `s_client` command connecting to mqtt.eclipse.org.
 In case a host operating system has `openssl` and `sed` packages installed, one could execute the following command to download and save the root certificate to a file (Note for Windows users: Both Linux like environment or Windows native packages may be used).
 ```
-echo "" | openssl s_client -showcerts -connect iot.eclipse.org:8883 | sed -n "1,/Root/d; /BEGIN/,/END/p" | openssl x509 -outform PEM >iot_eclipse_org.pem
+echo "" | openssl s_client -showcerts -connect mqtt.eclipse.org:8883 | sed -n "1,/Root/d; /BEGIN/,/END/p" | openssl x509 -outform PEM >mqtt_eclipse_org.pem
 ```
 Please note that this is not a general command for downloading a root certificate for an arbitrary host;
-this command works with iot.eclipse.org as the site provides root certificate in the chain, which then could be extracted
+this command works with mqtt.eclipse.org as the site provides root certificate in the chain, which then could be extracted
 with text operation.
 
 ### Build and Flash
index e318733662abee01ea0fd112b52bc69155576206..3c44294b00d34e4d614475291410063b1046e4e2 100644 (file)
@@ -2,7 +2,7 @@ menu "Example Configuration"
 
     config BROKER_URI
         string "Broker URL"
-        default "mqtts://iot.eclipse.org:8883"
+        default "mqtts://mqtt.eclipse.org:8883"
         help
             URL of an mqtt broker which this example connects to.
 
index fd0a49d7bfc033ec5bc036b3e25325a46a125fdf..cf0df5836756ce0e0218cb23015b80b9069e7caf 100644 (file)
@@ -35,11 +35,11 @@ static const char *TAG = "MQTTS_EXAMPLE";
 
 
 #if CONFIG_BROKER_CERTIFICATE_OVERRIDDEN == 1
-static const uint8_t iot_eclipse_org_pem_start[]  = "-----BEGIN CERTIFICATE-----\n" CONFIG_BROKER_CERTIFICATE_OVERRIDE "\n-----END CERTIFICATE-----";
+static const uint8_t mqtt_eclipse_org_pem_start[]  = "-----BEGIN CERTIFICATE-----\n" CONFIG_BROKER_CERTIFICATE_OVERRIDE "\n-----END CERTIFICATE-----";
 #else
-extern const uint8_t iot_eclipse_org_pem_start[]   asm("_binary_iot_eclipse_org_pem_start");
+extern const uint8_t mqtt_eclipse_org_pem_start[]   asm("_binary_mqtt_eclipse_org_pem_start");
 #endif
-extern const uint8_t iot_eclipse_org_pem_end[]   asm("_binary_iot_eclipse_org_pem_end");
+extern const uint8_t mqtt_eclipse_org_pem_end[]   asm("_binary_mqtt_eclipse_org_pem_end");
 
 static esp_err_t mqtt_event_handler_cb(esp_mqtt_event_handle_t event)
 {
@@ -101,7 +101,7 @@ static void mqtt_app_start(void)
 {
     const esp_mqtt_client_config_t mqtt_cfg = {
         .uri = CONFIG_BROKER_URI,
-        .cert_pem = (const char *)iot_eclipse_org_pem_start,
+        .cert_pem = (const char *)mqtt_eclipse_org_pem_start,
     };
 
     ESP_LOGI(TAG, "[APP] Free memory: %d bytes", esp_get_free_heap_size());
index 797c4a1f6798c6381e07de0e696d739cf370dfdb..597752fb9b69c76ecfe897bae47bd3162be441bc 100644 (file)
@@ -1 +1 @@
-COMPONENT_EMBED_TXTFILES := iot_eclipse_org.pem
+COMPONENT_EMBED_TXTFILES := mqtt_eclipse_org.pem
index 7e664825333630fbd3c3c418b98087b2f72978cd..ef9d1a9d64a0802d91796b160c3374c9655c4464 100644 (file)
@@ -87,7 +87,7 @@ def test_examples_protocol_mqtt_ssl(env, extra_data):
         client.on_message = on_message
         client.tls_set(None,
                        None,
-                       None, cert_reqs=ssl.CERT_NONE, tls_version=ssl.PROTOCOL_TLSv1, ciphers=None)
+                       None, cert_reqs=ssl.CERT_NONE, tls_version=ssl.PROTOCOL_TLSv1_2, ciphers=None)
         client.tls_insecure_set(True)
         print("Connecting...")
         client.connect(broker_url, broker_port, 60)
index fbd48103ba8515aa55480921bb7d8052d565e2b8..fc6e8a184c97f49f2b00a7fa30019e448c00bbb0 100644 (file)
@@ -2,7 +2,7 @@ menu "Example Configuration"
 
     config BROKER_URL
         string "Broker URL"
-        default "mqtt://iot.eclipse.org"
+        default "mqtt://mqtt.eclipse.org"
         help
             URL of the broker to connect to
 
index c0526b0735c360fbb53e937e51780cc1a4cd8910..3b2a05a979ec24f0a6836b91646c3dfa4cca5111 100644 (file)
@@ -2,7 +2,7 @@
 
 (See the README.md file in the upper level 'examples' directory for more information about examples.)
 
-This example connects to the broker iot.eclipse.org over web sockets as a demonstration subscribes/unsubscribes and send a message on certain topic.
+This example connects to the broker mqtt.eclipse.org over web sockets as a demonstration subscribes/unsubscribes and send a message on certain topic.
 (Please note that the public broker is maintained by the community so may not be always available, for details please see this [disclaimer](https://iot.eclipse.org/getting-started/#sandboxes))
 
 It uses ESP-MQTT library which implements mqtt client to connect to mqtt broker.
index 46f3ad5652b9dbf7c878a0a8dc105d6cba8bc880..c298f5d7c8eef2ac090738084cc825c0d956515b 100644 (file)
@@ -2,7 +2,7 @@ menu "Example Configuration"
 
     config BROKER_URI
         string "Broker URL"
-        default "ws://iot.eclipse.org:80/ws"
+        default "ws://mqtt.eclipse.org:80/mqtt"
         help
             URL of an mqtt broker which this example connects to.
 
index 0578876e2c6dd960c52166e91198cbc49bf59394..58b8d5e37a7df61b8ee92bc4380556f700660edd 100644 (file)
@@ -82,7 +82,6 @@ def test_examples_protocol_mqtt_ws(env, extra_data):
         client = mqtt.Client(transport="websockets")
         client.on_connect = on_connect
         client.on_message = on_message
-        client.ws_set_options(path="/ws", headers=None)
         print("Connecting...")
         client.connect(broker_url, broker_port, 60)
     except Exception:
index 3e2d5fc23e9fbf7348433048680c5fbfce0b44dd..2350bd829904292bd89fc23e4f3c48ff85dbcc7b 100644 (file)
@@ -9,4 +9,4 @@ set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_exam
 include($ENV{IDF_PATH}/tools/cmake/project.cmake)
 project(mqtt_websocket_secure)
 
-target_add_binary_data(mqtt_websocket_secure.elf "main/iot_eclipse_org.pem" TEXT)
+target_add_binary_data(mqtt_websocket_secure.elf "main/mqtt_eclipse_org.pem" TEXT)
index 9851d54337d1afe1dfa2a560f2dc65091433d9c5..c07477fe12936bbb44eb439b2c6c45f448460f09 100644 (file)
@@ -1,7 +1,7 @@
 # ESP-MQTT MQTT over WSS Sample application
 (See the README.md file in the upper level 'examples' directory for more information about examples.)
 
-This example connects to the broker iot.eclipse.org over secure websockets and as a demonstration subscribes/unsubscribes and send a message on certain topic.
+This example connects to the broker mqtt.eclipse.org over secure websockets and as a demonstration subscribes/unsubscribes and send a message on certain topic.
 (Please note that the public broker is maintained by the community so may not be always available, for details please see this [disclaimer](https://iot.eclipse.org/getting-started/#sandboxes))
 
 It uses ESP-MQTT library which implements mqtt client to connect to mqtt broker.
@@ -18,15 +18,15 @@ This example can be executed on any ESP32 board, the only required interface is
 * Configure Wi-Fi or Ethernet under "Example Connection Configuration" menu. See "Establishing Wi-Fi or Ethernet Connection" section in [examples/protocols/README.md](../../README.md) for more details.
 * When using Make build system, set `Default serial port` under `Serial flasher config`.
 
-Note how to create a PEM certificate for iot.eclipse.org:
+Note how to create a PEM certificate for mqtt.eclipse.org:
 
-PEM certificate for this example could be extracted from an openssl `s_client` command connecting to iot.eclipse.org.
+PEM certificate for this example could be extracted from an openssl `s_client` command connecting to mqtt.eclipse.org.
 In case a host operating system has `openssl` and `sed` packages installed, one could execute the following command to download and save the root certificate to a file (Note for Windows users: Both Linux like environment or Windows native packages may be used).
 ```
-echo "" | openssl s_client -showcerts -connect iot.eclipse.org:443 | sed -n "1,/Root/d; /BEGIN/,/END/p" | openssl x509 -outform PEM >iot_eclipse_org.pem
+echo "" | openssl s_client -showcerts -connect mqtt.eclipse.org:443 | sed -n "1,/Root/d; /BEGIN/,/END/p" | openssl x509 -outform PEM >mqtt_eclipse_org.pem
 ```
 Please note that this is not a general command for downloading a root certificate for an arbitrary host;
-this command works with iot.eclipse.org as the site provides root certificate in the chain, which then could be extracted
+this command works with mqtt.eclipse.org as the site provides root certificate in the chain, which then could be extracted
 with text operation.
 
 ### Build and Flash
index d3f7bf51c0fae13cd98dc2e7f47316a9dd2a68d0..5e43c89493636af32143021be2b8e8845f528595 100644 (file)
@@ -2,7 +2,7 @@ menu "Example Configuration"
 
     config BROKER_URI
         string "Broker URL"
-        default "wss://iot.eclipse.org:443/ws"
+        default "wss://mqtt.eclipse.org:443/mqtt"
         help
             URL of an mqtt broker which this example connects to.
 
index a9de24455a168c523d34f17c10ab1570a1a14808..529e96060596a6c4102b39d27cabef524671f586 100644 (file)
@@ -33,11 +33,11 @@ static const char *TAG = "MQTTWSS_EXAMPLE";
 
 
 #if CONFIG_BROKER_CERTIFICATE_OVERRIDDEN == 1
-static const uint8_t iot_eclipse_org_pem_start[]  = "-----BEGIN CERTIFICATE-----\n" CONFIG_BROKER_CERTIFICATE_OVERRIDE "\n-----END CERTIFICATE-----";
+static const uint8_t mqtt_eclipse_org_pem_start[]  = "-----BEGIN CERTIFICATE-----\n" CONFIG_BROKER_CERTIFICATE_OVERRIDE "\n-----END CERTIFICATE-----";
 #else
-extern const uint8_t iot_eclipse_org_pem_start[]   asm("_binary_iot_eclipse_org_pem_start");
+extern const uint8_t mqtt_eclipse_org_pem_start[]   asm("_binary_mqtt_eclipse_org_pem_start");
 #endif
-extern const uint8_t iot_eclipse_org_pem_end[]   asm("_binary_iot_eclipse_org_pem_end");
+extern const uint8_t mqtt_eclipse_org_pem_end[]   asm("_binary_mqtt_eclipse_org_pem_end");
 
 static esp_err_t mqtt_event_handler_cb(esp_mqtt_event_handle_t event)
 {
@@ -95,7 +95,7 @@ static void mqtt_app_start(void)
 {
     const esp_mqtt_client_config_t mqtt_cfg = {
         .uri = CONFIG_BROKER_URI,
-        .cert_pem = (const char *)iot_eclipse_org_pem_start,
+        .cert_pem = (const char *)mqtt_eclipse_org_pem_start,
     };
 
     ESP_LOGI(TAG, "[APP] Free memory: %d bytes", esp_get_free_heap_size());
index 797c4a1f6798c6381e07de0e696d739cf370dfdb..597752fb9b69c76ecfe897bae47bd3162be441bc 100644 (file)
@@ -1 +1 @@
-COMPONENT_EMBED_TXTFILES := iot_eclipse_org.pem
+COMPONENT_EMBED_TXTFILES := mqtt_eclipse_org.pem
index 58ce56036de149dc17d8c0f1917df226844a2d15..15ca2834a8aae77080c029627a3b880cffd4c5da 100644 (file)
@@ -85,7 +85,7 @@ def test_examples_protocol_mqtt_wss(env, extra_data):
         client.on_message = on_message
         client.tls_set(None,
                        None,
-                       None, cert_reqs=ssl.CERT_NONE, tls_version=ssl.PROTOCOL_TLSv1, ciphers=None)
+                       None, cert_reqs=ssl.CERT_NONE, tls_version=ssl.PROTOCOL_TLSv1_2, ciphers=None)
         print("Connecting...")
         client.connect(broker_url, broker_port, 60)
     except Exception:
index 4f376ea68f9fbe4c7bf12d7a410498c9a7eadc8d..c3a18a6cb6b6c6d7c49caa8ab33c7e771b2b3e24 100644 (file)
@@ -16,7 +16,7 @@
 #include "sim800.h"
 #include "bg96.h"
 
-#define BROKER_URL "mqtt://iot.eclipse.org"
+#define BROKER_URL "mqtt://mqtt.eclipse.org"
 
 static const char *TAG = "pppos_example";
 static EventGroupHandle_t event_group = NULL;