Skip to content

Commit

Permalink
Updated README.md with example on how to connect using ssl
Browse files Browse the repository at this point in the history
  • Loading branch information
ejvr committed Sep 30, 2017
1 parent 931697e commit 018523e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ Usage
client->setPassword("password");
client->connectToHost();

Connect using ssl:

QSslConfiguration sslConfig = QSslConfiguration::defaultConfiguration();
// Add custom SSL options here (for example extra certificates)
QMQTT::Client *client = new QMQTT::Client("example.com", 8883, sslConfig);
client->setClientId("clientId");
client->setUsername("user");
client->setPassword("password");
client->connectToHost();

Slots
=====

Expand Down

0 comments on commit 018523e

Please sign in to comment.