wolfSSL / wolfMQTT

wolfMQTT is a small, fast, portable MQTT client implementation, including support for TLS 1.3.
https://www.wolfssl.com
GNU General Public License v2.0
518 stars 156 forks source link

Adding publish and subscribe atomic client examples #347

Closed embhorn closed 10 months ago

embhorn commented 1 year ago

New examples in examples/pub-sub

These can be used for quickly testing MQTT application or scripting.

By default, they connect to localhost. Specify a topic with -n ./examples/pub-sub/mqtt-sub -n '#'

./examples/pub-sub/mqtt-pub -n test -m "Hello world!"

Enable verbose example debug with -d

embhorn commented 1 year ago

Should there be a new test script for the pub-sub clients?

I hadn't considered this. These are really just subsets of the mqttclient example. They could be used for testing against the protocol.

embhorn commented 1 year ago

Fixed executable names in .gitignore

embhorn commented 1 year ago

All looks good and tests out. I notice these aren't being used yet. Are you planning to add some additional scripts to test using these?

Yes, that is the intention, to better enable functional testing using these clients.