From 258c1a1faf040b6b10c9d7123ae4c7d6c409899f Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 10 Jul 2023 21:11:41 +0200 Subject: [PATCH] blocking loop --- everblu_meters.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");