Files
pubsubclient/_posts/2000-01-02-PubSubClient1.md
2020-05-21 01:17:42 +01:00

442 B

tag, type, name, params
tag type name params
api constructor PubSubClient
name description
client the network client to use, for example <code>WiFiClient</code>

Creates a partially initialised client instance.

Before it can be used, the server details must be configured:

EthernetClient ethClient;
PubSubClient client(ethClient);

void setup() {
    client.setServer("broker.example.com",1883);
    // client is now ready for use
}