rasProject_01 / weSweetHome
R. 240
process control / RasPi software by weinert-automation
|
A very simple MQTT subsciber. More...
#include <signal.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>
#include <mosquitto.h>
#include <getopt.h>
Variables | |
char | clientId [30] |
Id of this MQTT subscriber. More... | |
char | mqttHost [68] |
The MQTT broker URL or name. More... | |
int | mqttPort |
MQTT port 1883. | |
char | topicS [60] |
Root of topics to log. | |
A very simple MQTT subsciber.
cross-compile by:
program respectively transfer to target machine by:
The building of the application is governed by the make include makeProg_mosquiSub_settings.mk:
char mqttHost[68] |
The MQTT broker URL or name.
May be set by option –mqttHost meterPi or –mqttBroker 192.168.178.87
default: localhost MQTTBroker (currently localhost !)
char clientId[30] |
Id of this MQTT subscriber.
MQTT client ID.