diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2023-07-16 17:26:03 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2023-07-16 17:26:03 +0200 |
| commit | f1bbb2449f0ecbdb1ebe29e08d1aa041b8bf0f61 (patch) | |
| tree | 8cd33f7b766db214872046c870e3ada86526ac1e | |
| parent | dd12a4b42f9f4619519ecc2095aa05fb37b27648 (diff) | |
Minor changes
| -rw-r--r-- | README.md | 11 | ||||
| -rw-r--r-- | src/logger.c | 1 |
2 files changed, 11 insertions, 1 deletions
@@ -16,4 +16,13 @@ The only dependency is [ZeroMQ](https://zeromq.org/). After installing the ZeroM ### Deployment 1. Update `config.mk` according to your needs \*\***IMPORTANT**\*\* 2. On the nodes equiped with the ina260 chips run `make publish` -3. On the node that collect the measurements (broker, frontend etc..) run `make subscribe`
\ No newline at end of file +3. On the node that collect the measurements (broker, frontend etc..) run `make subscribe` + +### Notes +- Message format used in ZeroMQ exchanges: + + 1: <ZMQ_TOKEN> + 2: <KEY> + 3: <CLIENT> + 4: <INTERVAL> + 5-n:<CSV-DATA> diff --git a/src/logger.c b/src/logger.c index f7574d4..7a86457 100644 --- a/src/logger.c +++ b/src/logger.c @@ -70,6 +70,7 @@ int main (int argc, char *argv []) while(!__stop){ interval=INTERVAL(__loginterval); + *logfilepath='\0'; // Clear previous path sprintf(logfilepath,"%s/%ld",__logdir,interval); logptr=fopen(logfilepath,"w"); // Write file header: |
