mqttd.client

MQTT client implementation

Members

Aliases

SessionContainer
alias SessionContainer = FixedRingBuffer!(MessageContext)
Undocumented in source.

Classes

MqttClient
class MqttClient

MQTT Client implementation

PacketIdGenerator
class PacketIdGenerator

Packet ID generator Holds the status of ID usage and generates the next ones.

Enums

PacketOrigin
enum PacketOrigin

Origin of the stored packet

PacketState
enum PacketState

MQTT packet state

Manifest constants

MQTT_DEFAULT_BROKER_PORT
enum MQTT_DEFAULT_BROKER_PORT;

default mqtt broker port

MQTT_DEFAULT_BROKER_SSL_PORT
enum MQTT_DEFAULT_BROKER_SSL_PORT;

default mqtt broker ssl port

MQTT_DEFAULT_CLIENT_ID
enum MQTT_DEFAULT_CLIENT_ID;

default client identifier

MQTT_DEFAULT_INFLIGHTQUEUE_SIZE
enum MQTT_DEFAULT_INFLIGHTQUEUE_SIZE;

maximal number of packets which can be processed at the same time

MQTT_DEFAULT_RETRY_ATTEMPTS
enum MQTT_DEFAULT_RETRY_ATTEMPTS;

max publish, subscribe and unsubscribe retry for QoS Level 1 or 2

MQTT_DEFAULT_RETRY_DELAY
enum MQTT_DEFAULT_RETRY_DELAY;

retry interval to resend publish (QoS 1 or 2), subscribe and unsubscribe messages ms

MQTT_DEFAULT_SENDQUEUE_SIZE
enum MQTT_DEFAULT_SENDQUEUE_SIZE;

maximal number of packets stored in queue to send

MQTT_MAX_PACKET_ID
enum MQTT_MAX_PACKET_ID;

maximal packet id (0..65536) - defined by MQTT protocol

Structs

Settings
struct Settings

MqttClient settings

Templates

Callback
template Callback(T...)
Undocumented in source.

Meta

Authors

Tomáš Chaloupka <chalucha@gmail.com>

License

Boost Software License 1.0 (BSL-1.0)

Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following:

The copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.