diff --git a/api.html b/api.html index 35ea364..0934f31 100644 --- a/api.html +++ b/api.html @@ -18,9 +18,10 @@ title: API Documentation
  • boolean connect (clientID, username, password, willTopic, willQoS, willRetain, willMessage)
  • void disconnect ()
  • int publish (topic, payload)
  • -
  • int publish (topic, payload, length)
  • -
  • int publish (topic, payload, length, retained)
  • -
  • int publish_P (topic, payload, length, retained)
  • +
  • int publish (topic, payload, retained)
  • +
  • int publish (topic, payload, length)
  • +
  • int publish (topic, payload, length, retained)
  • +
  • int publish_P (topic, payload, length, retained)
  • boolean subscribe (topic, [qos])
  • boolean unsubscribe (topic)
  • boolean loop ()
  • @@ -173,33 +174,16 @@ void setup() {
    -

    int publish (topic, payload, length)

    -

    Publishes a message to the specified topic.

    +

    int publish (topic, payload, retained)

    +

    Publishes a string message to the specified topic.

    Parameters
    -
    Returns
    - -
    - -
    -

    int publish (topic, payload, length, retained)

    -

    Publishes a message to the specified topic, with the retained flag as specified.

    -
    Parameters
    - @@ -210,18 +194,56 @@ void setup() {
    +
    +

    int publish (topic, payload, length)

    +

    Publishes a message to the specified topic.

    +
    Parameters
    + +
    Returns
    + +
    +
    +

    int publish (topic, payload, length, retained)

    +

    Publishes a message to the specified topic, with the retained flag as specified.

    +
    Parameters
    + +
    Returns
    + +
    + +

    int publish_P (topic, payload, length, retained)

    Publishes a message stored in PROGMEN to the specified topic, with the retained flag as specified.

    Parameters