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

22 lines
367 B
Markdown

---
tag: api
type: constructor
name: PubSubClient
---
Creates an uninitialised client instance.
Before it can be used, it must be configured with the property setters:
```
EthernetClient ethClient;
PubSubClient client;
void setup() {
client.setClient(ethClient);
client.setServer("broker.example.com",1883);
// client is now configured for use
}
```