diff options
Diffstat (limited to 'src/mqtt.c')
| -rw-r--r-- | src/mqtt.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -40,10 +40,10 @@ mqtt_connect(const char *clientid, // NOLINT | |||
| 40 | } | 40 | } |
| 41 | 41 | ||
| 42 | void | 42 | void |
| 43 | mqtt_run(struct mosquitto *client, | 43 | mqtt_handle_messages(struct mosquitto *client, |
| 44 | const char *topics[], | 44 | const char *topics[], |
| 45 | void callback(struct mosquitto *, void *, const struct mosquitto_message *), | 45 | void callback(struct mosquitto *, void *, const struct mosquitto_message *), |
| 46 | const volatile bool *quit) | 46 | const volatile bool *quit) |
| 47 | { | 47 | { |
| 48 | if ( callback ) { | 48 | if ( callback ) { |
| 49 | mosquitto_message_callback_set(client, callback); | 49 | mosquitto_message_callback_set(client, callback); |
