Euripedes Rocha 9628c9b5b8 ci(mqtt): Move publish tests to nightly há 2 anos atrás
..
main fba535756e ci(mqtt): Refactor publish connect test há 2 anos atrás
CMakeLists.txt facab8c5a7 tools: Increase the minimal supported CMake version to 3.16 há 3 anos atrás
README.md c0568611dd docs: changes docs supported targets tables há 3 anos atrás
ca.crt 911be99054 mqtt-tests: migrate the publish-connection test from example-test to test-apps há 6 anos atrás
ca.der 911be99054 mqtt-tests: migrate the publish-connection test from example-test to test-apps há 6 anos atrás
ca.key 911be99054 mqtt-tests: migrate the publish-connection test from example-test to test-apps há 6 anos atrás
client_inv.crt 911be99054 mqtt-tests: migrate the publish-connection test from example-test to test-apps há 6 anos atrás
client_no_pwd.key 911be99054 mqtt-tests: migrate the publish-connection test from example-test to test-apps há 6 anos atrás
client_pwd.crt 911be99054 mqtt-tests: migrate the publish-connection test from example-test to test-apps há 6 anos atrás
client_pwd.key 911be99054 mqtt-tests: migrate the publish-connection test from example-test to test-apps há 6 anos atrás
pytest_mqtt_app.py fba535756e ci(mqtt): Refactor publish connect test há 2 anos atrás
pytest_mqtt_publish_app.py 9628c9b5b8 ci(mqtt): Move publish tests to nightly há 2 anos atrás
sdkconfig.ci.default 7d6241e761 esp_netif: Make esp_netif_receive() return value configurable há 2 anos atrás
sdkconfig.qemu 49ee304161 CI: Prepare mqtt app test for QEMU tests há 4 anos atrás
server.key 911be99054 mqtt-tests: migrate the publish-connection test from example-test to test-apps há 6 anos atrás

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.