diff --git a/everblu_meters.c b/everblu_meters.c index dbbb864..8c59e11 100644 --- a/everblu_meters.c +++ b/everblu_meters.c @@ -136,7 +136,7 @@ int main(int argc, char *argv[]) return 1; } //Start a thread, and call mosquitto? Loop() continuously in the thread to process network information - int loop = mosquitto_loop_start(mosq); + int loop = mosquitto_loop_forever(mosq, -1, 1); if(loop != MOSQ_ERR_SUCCESS) { fprintf(stderr, "ERROR: failed to create mosquitto loop");