mirror of
https://gitlab.com/manzerbredes/ina260-zmq-publisher.git
synced 2025-04-06 03:46:25 +02:00
Minor changes
This commit is contained in:
parent
9f4eb5b6b8
commit
d2c44f9a57
1 changed files with 2 additions and 2 deletions
|
@ -96,12 +96,12 @@ void publish(void *publisher, char *filepath, char* client, long int interval){
|
|||
strcat(buffer,line);
|
||||
msglen+=read;
|
||||
} else {
|
||||
zmq_send (publisher, buffer, ZMQ_MSG_SIZE, 0);
|
||||
zmq_send (publisher, buffer, msglen, 0);
|
||||
sprintf(buffer,"%s\n%s\n%s\n%ld\n",ZMQ_TOKEN,__key,client,interval);
|
||||
strcat(buffer,line);
|
||||
msglen=strlen(buffer);
|
||||
}
|
||||
}
|
||||
fclose(fptr);
|
||||
zmq_send (publisher, buffer, ZMQ_MSG_SIZE, 0);
|
||||
zmq_send (publisher, buffer, msglen, 0);
|
||||
}
|
Loading…
Add table
Reference in a new issue