Rebuild docs to make them easier to maintain
This commit is contained in:
23
_posts/2000-01-02-PubSubClient1.md
Normal file
23
_posts/2000-01-02-PubSubClient1.md
Normal file
@ -0,0 +1,23 @@
|
||||
---
|
||||
tag: api
|
||||
type: constructor
|
||||
name: PubSubClient
|
||||
params:
|
||||
- name: client
|
||||
description: 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
|
||||
}
|
||||
```
|
Reference in New Issue
Block a user