This object provides a Max interface to a treaded instance of the [libmosquitto](http://mosquitto.org/man/libmosquitto-3.html) client.
v20210101 was developped, tested and signed on macOS 10.14.6. It covers the features our application required; more work to follow (see below).
It bundles a static libmosquitto binary (TLS support was giving errors so it was simply disabled through CMake). You can probably swap the .a in the .mxo with your own library if you wish.
Signing seems to be OK; not sure how the Xcode project will present itself to someone else, but as long as the bundled libmosquitto.a gets signed (there a scripting step for that), it works fine on unrelated computers.
## TODO
Max interface:
- QOS, persistence and will
- complete MQTT callback support
- complete attribute support
- auto-connection
Bundled library:
- TLS support
- (maybe) auto-discovery of dynamic system-level dylib support, vs bundled as fallback (?)
- or should the MQTT CMake-based source be included / compiled with the object?
Other features:
- max package
- internal preprocessing of the received message (detect JSON dict, or list or ...?)
- optimize lifecycle of the mosquitto instance? (re-use vs re-create)
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plistversion="1.0">
<dict>
<key>files</key>
<dict/>
<key>files2</key>
<dict>
<key>Frameworks/libmosquitto_static.a</key>
<dict>
<key>cdhash</key>
<data>
LKXsQtk3PyDUOKqeiS6XcEOZdMM=
</data>
<key>requirement</key>
<string>identifier "libmosquitto_static" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = "2FS5KJDXKD"</string>