|
| RoverMQTTCommand (char *host, const int port, const int roverID, const int qos, char *username, char *password, char *clientID) |
| Copy constructor for RoverMQTTCommand class that uses username and password. More...
|
|
| RoverMQTTCommand (char *host, const int port, const int roverID, const int qos, char *clientID) |
| Copy constructor for RoverMQTTCommand class that doesn't use credentials. More...
|
|
| ~RoverMQTTCommand () |
| Destructor for RoverMQTTCommand class. More...
|
|
int | publishToTelemetryTopic (RoverSensorData_t sensor_data) |
| Publishes a message to rover's telemetry topic (using redirected topic method) More...
|
|
int | publishToTelemetryTopicNonRedirected (RoverSensorData_t sensor_data) |
| Publishes a message to rover's telemetry topic (using unredirected topic method) More...
|
|
int | subscribeToDrivingTopic (void) |
| Subscribes to rover's driving topic. More...
|
|
int | unsubscribeToDrivingTopic (void) |
| Unsubscribes to rover's driving topic. More...
|
|
int | connectRover (void) |
| connectRover connects to the MQTT broker. Each rover ideally should have only one client, instantiated internally within RoverMQTTCommand class. More...
|
|
int | getRoverConnected (void) |
| Returns rover connected flag. More...
|
|
RoverControlData_t | readFromDrivingTopic (void) |
| Returns the retrieved driving information. More...
|
|
char * | getTopicName (void) |
| Retrieves topic name. More...
|
|
int | getRoverID (void) |
| Retrieves Rover ID. More...
|
|
void | setRoverID (const int rover_id) |
| Sets Rover ID. More...
|
|
|
| ~RoverPahoMQTT () |
| Destructor for RoverPahoMQTT class. More...
|
|
| RoverPahoMQTT () |
| Default constructor for RoverPahoMQTT class. More...
|
|
| RoverPahoMQTT (char *host_name, int port, RoverMQTT_Configure_t MQTT_Configure) |
| Copy constructor for RoverPahoMQTT. More...
|
|
void | setHostName (char *host_name) |
| Sets private attribute HOST_NAME. More...
|
|
void | setPort (const int port) |
| Sets private attribute PORT. More...
|
|
void | setPayload (const char *payload, int payloadLen) |
| Sets payload. More...
|
|
void | setTopic (char *topic) |
| Sets topic name. More...
|
|
int | read (char *data) |
| Public member function for reading subscribed data. This function requires the RoverPahoMQTT to be subscribed first. More...
|
|
int | isDataReady (void) |
| Public member function checking if the subscribed data is ready. 0-> data ready -1-> data not ready. More...
|
|
int | publish (void) |
| Used for publishing to a topic in an MQTT-broker using asynchronous method. More...
|
|
int | connect (void) |
| Used for connecting to MQTT broker asynchronously. More...
|
|
int | subscribe (void) |
| Used for subscribing to a topic in an MQTT-broker. To unsubscribe use: RoverPahoMQTT::unsubscribe() More...
|
|
int | unsubscribe (void) |
| Used for unsubscribing and disconnecting from a subscription to a topic in an MQTT-broker. More...
|
|
int | getConnected (void) |
| Returns connected flag. More...
|
|
void | createClient (void) |
| Create the MQTT client object. More...
|
|
void | destroyClient (void) |
| Destroy the MQTT client object. More...
|
|
void | flushFlags (void) |
| Private member function to flush the connection flags for new operation. More...
|
|
void | constructAddress (void) |
| Used for constructing the connection address by writing to private attribute my_address. More...
|
|
void | onConnect (MQTTAsync_successData *response) |
| Member callback function for onPublisherConnect actions. More...
|
|
void | onPublisherSend (MQTTAsync_successData *response) |
| Member callback function for onPublisherSend actions. More...
|
|
int | onSubscriberMessageArrived (char *topicName, int topicLen, MQTTAsync_message *message) |
| Member callback function for onSubscriberMessageArrived actions. More...
|
|
void | onSubscribe (MQTTAsync_successData *response) |
| Member callback function for onSubscribe actions. More...
|
|
void | onSubscribeFailure (MQTTAsync_failureData *response) |
| Member callback function for onSubscribeFailure actions. More...
|
|
void | onConnectFailure (MQTTAsync_failureData *response) |
| Member callback function for onConnectFailure actions. More...
|
|
void | onConnectionLost (char *cause) |
| Member callback function for onConnectionLost actions. More...
|
|
void | onDisconnect (MQTTAsync_successData *response) |
| Member callback function for onDisconnect actions. More...
|
|
virtual | ~RoverCloud () |
| Virtual destructor. More...
|
|
static void | onConnect_Redirect (void *context, MQTTAsync_successData *response) |
| Static function responsible for calling RoverPahoMQTT::onPublisherConnect in a given RoverPahoMQTT context. More...
|
|
static void | onPublisherSend_Redirect (void *context, MQTTAsync_successData *response) |
| Static function responsible for calling RoverPahoMQTT::onPublisherSend in a given RoverPahoMQTT context. More...
|
|
static int | onSubscriberMessageArrived_Redirect (void *context, char *topicName, int topicLen, MQTTAsync_message *message) |
| Static function responsible for calling RoverPahoMQTT::onSubscriberMessageArrived in a given RoverPahoMQTT context. More...
|
|
static void | onSubscribe_Redirect (void *context, MQTTAsync_successData *response) |
| Static function responsible for calling RoverPahoMQTT::onSubscribe in a given RoverPahoMQTT context. More...
|
|
static void | onSubscribeFailure_Redirect (void *context, MQTTAsync_failureData *response) |
| Static function responsible for calling RoverPahoMQTT::onSubscribeFailure in a given RoverPahoMQTT context. More...
|
|
static void | onConnectFailure_Redirect (void *context, MQTTAsync_failureData *response) |
| Static function responsible for calling RoverPahoMQTT::onConnectFailure in a given RoverPahoMQTT context. More...
|
|
static void | onConnectionLost_Redirect (void *context, char *cause) |
| Static function responsible for calling RoverPahoMQTT::onConnectionLost in a given RoverPahoMQTT context. More...
|
|
static void | onDisconnect_Redirect (void *context, MQTTAsync_successData *response) |
| Static function responsible for calling RoverPahoMQTT::onDisconnect in a given RoverPahoMQTT context. More...
|
|
RoverMQTTCommand class is an implementation class extending RoverPahoMQTT for rover-specific topic subscription and publishing using JSON for parsing and using predefined type variables such as RoverControlData_t and RoverSensorData_t.