Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ReadTheDocs for documentation #50

Merged
merged 12 commits into from
Sep 6, 2016
Prev Previous commit
Document constants
  • Loading branch information
mgdm committed Sep 6, 2016
commit 18c5cb6156fe03eb17c4705063d5f1d698cd797c
40 changes: 34 additions & 6 deletions docs/client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,34 @@ Mosquitto\\Client

This is the main Mosquitto client.

.. php:const:: LOG_DEBUG

Identifies a debug-level log message

.. php:const:: LOG_INFO

Identifies an info-level log message

.. php:const:: LOG_NOTICE

Identifies a notice-level log message

.. php:const:: LOG_WARNING

Identifies a warning-level log message

.. php:const:: LOG_ERR

Identifies an error-level log message

.. php:const:: SSL_VERIFY_NONE

Used with :php:meth:`~Client::setTlsInsecure`. Do not verify the identity of the server, thus making the connection insecure.

.. php:const:: SSL_VERIFY_PEER

Used with :php:meth:`~Client::setTlsInsecure`. Verify the identity of the server.

.. php:method:: __construct([$id = null, $cleanSession = true])

Construct a new Client instance.
Expand Down Expand Up @@ -69,7 +97,7 @@ Mosquitto\\Client

Remove a previously-set will. No parameters.

.. php:method:: setReconnectDelay($reconnectDelay, $exponentialDelay, $exponentialBackoff = false)
.. php:method:: setReconnectDelay($reconnectDelay, $exponentialDelay, $exponentialBackoff)

Control the behaviour of the client when it has unexpectedly disconnected in :php:meth:`Client::loopForever`. The default behaviour if this method is not used is to repeatedly attempt to reconnect with a delay of 1 second until the connection succeeds.

Expand Down Expand Up @@ -136,11 +164,11 @@ Mosquitto\\Client

The level can be one of:

* ``Mosquitto\Client::LOG_DEBUG``
* ``Mosquitto\Client::LOG_INFO``
* ``Mosquitto\Client::LOG_NOTICE``
* ``Mosquitto\Client::LOG_WARNING``
* ``Mosquitto\Client::LOG_ERR``
* :php:const:`Client::LOG_DEBUG`
* :php:const:`Client::LOG_INFO`
* :php:const:`Client::LOG_NOTICE`
* :php:const:`Client::LOG_WARNING`
* :php:const:`Client::LOG_ERR`

.. php:method:: onSubscribe($callback)

Expand Down