mqttreceiver added

This commit is contained in:
2020-06-17 13:53:54 +02:00
parent 0e9b7c8e22
commit 034ad78ceb
8 changed files with 295 additions and 7 deletions

View File

@ -1,5 +1,6 @@
#include <stdint.h>
#include <pthread.h>
#include <stdio.h>
#include "ringbuffer.h"
@ -9,6 +10,7 @@ void ringbufferInit(t_ringbuffer *handle) {
handle->bufferWriteIdx = 0;
pthread_mutex_init(&(handle->eventMutex), NULL);
pthread_cond_init(&(handle->eventSignal), NULL);
fprintf(stderr, "ringbuffer initialized\n");
}
void ringbufferPut(t_ringbuffer *handle, void *f) {