# doc-cache created by Octave 11.3.0
# name: cache
# type: cell
# rows: 3
# columns: 1
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 10
mqttclient


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 2288
 -- CLIENT = mqttclient (BROKERADDR)
 -- CLIENT = mqttclient (BROKERADDR, [NAME, VALUE ....])
     Create a MQTT client connection

     Inputs
     ......

     ‘brokerAddr’
          Name or IP address with protocol.  ie: tcp://127.0.0.1.
     ‘name, value’
          Optional name / value pairs.

     Known options are:
     ‘Port’
          Numeric port number to connect to (default 1883)
     ‘Timeout’
          Numeric timeout value in seconds (default 5)
     ‘KeepAliveDuration’
          Numeric keep alive value in seconds (default 60)
     ‘ClientID’
          String client Id
     ‘Username’
          String username
     ‘Password’
          String password
     ‘CARootCertificate’
          String full file path to a root certificate file when using a secure
          connection
     ‘ClientCertificate’
          String full file path to a client certificate file when using a secure
          connection
     ‘ClientKey’
          String full file path to a private client key file when using a secure
          connection
     ‘SSLPassword’
          String password to decrypt the client key file
     ‘LastWillTopic’
          String Last Will Topic.  Must be set to a non-empty string to enable
          LastWill.
     ‘LastWillMessage’
          String Last Will Message.  (Default "")
     ‘LastWillQOS’
          Numeric 0|1|2 Last Will QoS Value (Default 0)
     ‘LastWillRetain’
          Logical 0|1 Last Will Retain Value (Default 0)

     Outputs
     .......

     ‘client’
          An octave_mqtt object

     Properties
     ..........

     An octave_mqtt object has the following properties:
     ‘BrokerAddress’
          Broker URL
     ‘Port’
          Numeric port number to connect to (default 1883)
     ‘Timeout’
          Numeric timeout value in seconds (default 5)
     ‘KeepAliveDuration’
          Numeric keep-alive value in seconds (default 60)
     ‘ClientID’
          String client Id
     ‘Connected’
          logical 0|1 value for connection status
     ‘Subscriptions’
          List of topics currently subscribed to

     Examples
     ........

     Create a new MQTT Client

          client = mqttclient("tcp://127.0.0.1");


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 31
Create a MQTT client connection





