- make-mqtt-client #!key id (clean-session #t) user-data on-connect on-disconnect on-publish on-message on-subscribe on-unsubscribe on-logprocedure
- id: String to use as the client id. If #f, a random client id will be generated. If id is #f, clean-session must be #t.
- clean-session: set to #t to instruct the broker to clean all messages and subscriptions on disconnect, #f to instruct it to keep them. Note that a client will never discard its own outgoing messages on disconnect. Calling mqtt-connect or mqtt-reconnect will cause the messages to be resent. Use mqtt-reinitialise to reset a client to its original state. Must be set to #t if the id parameter is #f.
- user-data: user data that will be passed with cleint argument to any callbacks that are specified.
- on-connect: Connect callback. Look set-mqtt-client-connect-callback!
- on-disconnect: Disconnect callback. Look set-mqtt-client-disconnect-callback!
- on-publish: Publish callback. Look set-mqtt-client-publish-callback!
- on-message: Message callback. Look set-mqtt-client-message-callback!
- on-subscribe: Subscribe callback. Look set-mqtt-client-subscribe-callback!
- on-unsubscribe: Unsubscribe callback. Look set-mqtt-client-unsubscribe-callback!
- on-log: Logging callback. Look set-mqtt-client-log-callback!