-
Notifications
You must be signed in to change notification settings - Fork 1.4k
mqtt
Adam Rudd edited this page Feb 28, 2013
·
3 revisions
These methods are the preferred method for generating mqtt clients and servers.
Create a new MqttServer (see: (MqttServer)[server])
-
[listener]- callback called on serverclientevent
Create a new MqttSecureServer
-
keyPath- path to private key file -
certPath- path to corresponding public cert -
[listener]- callback called on serverclientevent
Create a new MqttClient (see: (MqttClient)[client])
-
[port]- broker port (default: 1883) -
[host]- broker host (default: localhost) -
[options]- connect options
Create a new secure MqttClient
-
[port]- broker port (default: 1883) -
[host]- broker host (default: localhost) -
options- connection options, must include keys:-
keyPath- path to private key -
certPath- path to corresponding public cert
-
Create a new MqttConnection (see: (MqttConnection)[connection])
-
[port]- broker port (default: 1883) -
[host]- broker host (default: localhost) -
[callback]- fired on underlying stream connect