esp-idf/tools/test_apps/protocols/mqtt/publish_connect_test
Chen Yudong d54e1e8379 CI: make sure that reading of the ipv4 address has finished 2022-07-15 14:21:39 +08:00
..
main Build & config: Remove leftover files from the unsupported "make" build system 2021-11-11 15:32:36 +01:00
CMakeLists.txt tools: Increase the minimal supported CMake version to 3.16 2022-06-01 06:35:02 +00:00
README.md docs: changes docs supported targets tables 2022-07-14 08:26:32 +08:00
app_test.py CI: make sure that reading of the ipv4 address has finished 2022-07-15 14:21:39 +08:00
ca.crt
ca.der
ca.key
client_inv.crt
client_no_pwd.key
client_pwd.crt
client_pwd.key
publish_connect_mqtt_.yml
publish_connect_mqtt_qemu.yml
sdkconfig.ci.default esp_netif: Remove tcpip_adapter compatibility layer 2022-03-10 08:19:43 +01:00
sdkconfig.qemu
server.key

README.md

Supported Targets ESP32 ESP32-C3 ESP32-S2

ESP-MQTT advanced publish and connect test project

Main purpose of this application is to test the MQTT library to correctly publish and receive messages (of different size and sequences) over different transports. It is possible to run this example manually without any test to exercise how the MQTT library deals with

  • reception of fragmented messages
  • runtime updates of URI

Runtime settings

This app waits for user input to provide these parameters:

  • test-type: "conn" if connection test (host, port, test-case number)
  • publish test:
    • transport: string parameter, one of: tcp, ssl, ws, wss
    • pattern: sample string to be transmitted as message
    • pattern repeats: number of repeats of pattern in one MQTT message
    • repeated: number of repeats ESP32 publishes the message, also ESP32 expects to receive the same message the same number of repeats
    • qos: number specifying qos, one of: 0, 1, 2

Hardware Required

This test-app can be executed on any ESP32 board, the only required interface is WiFi and connection to a local network, then depending on the test either a mqtt test broker or a tls server.