The following two figures are configuration diagrams that
use encryption and no encryption, respectively.
NOTE:
a), ‘Name’ and ‘Password’ are obtained/set when creating
a project on the MQTT server.
b) The SSL certificate is issued by a trusted digital
certificate authority CA (eg Symantec) after verifying the
identity of the server. It has server authentication and data
transfer encryption.
c) Check the 'Clean Session' option to clear the session
cache. Checked by default.
3. When the settings are complete, click the ‘OK’ button
4. Sample program: