esp-idf/tools/test_apps/protocols/mqtt/publish_connect_test
David Cermak 965423d532 CI: Prepare mqtt app test for QEMU tests
Adds qemu configuration
Generalize the get_dut() to enable choosing DUT class per configuration
2021-07-21 11:48:27 +02:00
..
main ci: Extend the MQTT weekend test to check mqtt-enqueue api 2021-01-05 12:04:36 +00:00
app_test.py CI: Prepare mqtt app test for QEMU tests 2021-07-21 11:48:27 +02:00
ca.crt mqtt-tests: migrate the publish-connection test from example-test to test-apps 2020-02-07 21:14:24 +01:00
ca.der mqtt-tests: migrate the publish-connection test from example-test to test-apps 2020-02-07 21:14:24 +01:00
ca.key mqtt-tests: migrate the publish-connection test from example-test to test-apps 2020-02-07 21:14:24 +01:00
client_inv.crt mqtt-tests: migrate the publish-connection test from example-test to test-apps 2020-02-07 21:14:24 +01:00
client_no_pwd.key mqtt-tests: migrate the publish-connection test from example-test to test-apps 2020-02-07 21:14:24 +01:00
client_pwd.crt mqtt-tests: migrate the publish-connection test from example-test to test-apps 2020-02-07 21:14:24 +01:00
client_pwd.key mqtt-tests: migrate the publish-connection test from example-test to test-apps 2020-02-07 21:14:24 +01:00
CMakeLists.txt mqtt-tests: migrate the publish-connection test from example-test to test-apps 2020-02-07 21:14:24 +01:00
env.yml mqtt: Moved weekend tests to test apps 2021-07-19 15:05:58 +02:00
Makefile mqtt-tests: migrate the publish-connection test from example-test to test-apps 2020-02-07 21:14:24 +01:00
publish_connect_mqtt_.yml mqtt: Moved weekend tests to test apps 2021-07-19 15:05:58 +02:00
publish_connect_mqtt_qemu.yml mqtt: Moved weekend tests to test apps 2021-07-19 15:05:58 +02:00
README.md CI: enable example builds for C3 2021-02-09 12:04:02 +08:00
sdkconfig.ci.default ci/mqtt: Made MQTT test app tls insecure capable 2021-01-05 21:23:25 +01:00
sdkconfig.qemu CI: Prepare mqtt app test for QEMU tests 2021-07-21 11:48:27 +02:00
server.key mqtt-tests: migrate the publish-connection test from example-test to test-apps 2020-02-07 21:14:24 +01:00

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.