Class used to publish messages to an MQTT broker.
More...
#include <MattzoMQTTSubscriber.h>
|
static QueueHandle_t | IncomingQueue = nullptr |
|
static int | ReconnectDelayInMilliseconds = 1000 |
| Reconnect delay in milliseconds. This configures the delay between reconnect attempts.
|
|
static int | HandleMessageDelayInMilliseconds = 10 |
| Send message delay in milliseconds. This configures the delay between send message attempts.
|
|
static uint8_t | TaskPriority = 2 |
| The priority at which the task should run. Systems that include MPU support can optionally create tasks in a privileged (system) mode by setting bit portPRIVILEGE_BIT of the priority parameter. For example, to create a privileged task at priority 2 the uxPriority parameter should be set to ( 2 | portPRIVILEGE_BIT ).
|
|
static int8_t | CoreID = 0 |
| If the value is tskNO_AFFINITY, the created task is not pinned to any CPU, and the scheduler can run it on any core available. Values 0 or 1 indicate the index number of the CPU which the task should be pinned to. Specifying values larger than (portNUM_PROCESSORS - 1) will cause the function to fail.
|
|
static uint32_t | StackDepth = 2048 |
| The size of the task stack specified as the number of bytes.
|
|
static uint16_t | MaxBufferSize = 1024 |
| The maximum message size, including header, specified as the number of bytes. Messages larger than this are ignored!
|
|
static void(* | handler )(const char *message) = nullptr |
|
Class used to publish messages to an MQTT broker.
◆ GetStatus()
int MattzoMQTTSubscriber::GetStatus |
( |
| ) |
|
|
static |
◆ Loop()
void MattzoMQTTSubscriber::Loop |
( |
| ) |
|
|
static |
◆ Setup()
void MattzoMQTTSubscriber::Setup |
( |
MCMQTTConfiguration * | config, |
|
|
void(*)(const char *message) | MQTThandler ) |
|
static |
Setup the MQTT Subscriber.
◆ CoreID
int8_t MattzoMQTTSubscriber::CoreID = 0 |
|
static |
If the value is tskNO_AFFINITY, the created task is not pinned to any CPU, and the scheduler can run it on any core available. Values 0 or 1 indicate the index number of the CPU which the task should be pinned to. Specifying values larger than (portNUM_PROCESSORS - 1) will cause the function to fail.
◆ HandleMessageDelayInMilliseconds
int MattzoMQTTSubscriber::HandleMessageDelayInMilliseconds = 10 |
|
static |
Send message delay in milliseconds. This configures the delay between send message attempts.
◆ handler
void(* MattzoMQTTSubscriber::handler)(const char *message) = nullptr |
|
static |
◆ IncomingQueue
QueueHandle_t MattzoMQTTSubscriber::IncomingQueue = nullptr |
|
static |
◆ MaxBufferSize
uint16_t MattzoMQTTSubscriber::MaxBufferSize = 1024 |
|
static |
The maximum message size, including header, specified as the number of bytes. Messages larger than this are ignored!
◆ ReconnectDelayInMilliseconds
int MattzoMQTTSubscriber::ReconnectDelayInMilliseconds = 1000 |
|
static |
Reconnect delay in milliseconds. This configures the delay between reconnect attempts.
◆ StackDepth
uint32_t MattzoMQTTSubscriber::StackDepth = 2048 |
|
static |
The size of the task stack specified as the number of bytes.
◆ TaskPriority
uint8_t MattzoMQTTSubscriber::TaskPriority = 2 |
|
static |
The priority at which the task should run. Systems that include MPU support can optionally create tasks in a privileged (system) mode by setting bit portPRIVILEGE_BIT of the priority parameter. For example, to create a privileged task at priority 2 the uxPriority parameter should be set to ( 2 | portPRIVILEGE_BIT ).
The documentation for this class was generated from the following files: