Debug info
This commit is contained in:
parent
77f15678b8
commit
085e9da0e6
@ -100,7 +100,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
//Connect to MQTT server
|
//Connect to MQTT server
|
||||||
if(mosquitto_connect(mosq, MQTT_HOST, MQTT_PORT, MQTT_KEEP_ALIVE)){
|
if(mosquitto_connect(mosq, MQTT_HOST, MQTT_PORT, MQTT_KEEP_ALIVE)){
|
||||||
fprintf(stderr, "ERROR: Unable to connect to MQTT broker.\n");
|
fprintf(stderr, "ERROR: Unable to connect to MQTT broker (%s %i %s).\n", MQTT_HOST, MQTT_USER, MQTT_PORT);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
//Start a thread, and call mosquitto? Loop() continuously in the thread to process network information
|
//Start a thread, and call mosquitto? Loop() continuously in the thread to process network information
|
||||||
|
Loading…
x
Reference in New Issue
Block a user