diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2023-07-15 19:45:32 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2023-07-15 19:45:32 +0200 |
| commit | 3ed96f9c9a813130f26cd1187fc439440067e5cc (patch) | |
| tree | 6a8fce71081f260e14f9e6d6cc515df6f599bdd7 | |
| parent | 831c3999b48613c61e15094bf0581cb38e1c3467 (diff) | |
Minor changes
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | Makefile | 5 | ||||
| -rw-r--r-- | config.mk | 3 |
3 files changed, 7 insertions, 3 deletions
@@ -5,4 +5,4 @@ # Caches /logs -/cdata
\ No newline at end of file +/data
\ No newline at end of file @@ -15,10 +15,11 @@ logger: src/logger.c src/utils.c $(CC) $^ -o $@ publish: publisher logger - $(error "Not yet implemented") + ./logger $(LOGGERS_DIR) 587 $(LOG_INTERVAL) & + ./publisher $(LOGGERS_DIR) $(LOG_INTERVAL) $(SUBSCRIBER_ADDR) $(ZMQ_PORT) $(KEY) & subscribe: subscriber - $(error "Not yet implemented") + ./subscriber $(ZMQ_PORT) $(SUBSCRIBER_DIR) clean: rm -f logger subscriber publisher @@ -6,6 +6,9 @@ SUBSCRIBER_ADDR=localhost # LOGGERS_DIR will contains all the data generated by the loggers # a.k.a the ina260 power measurements LOGGERS_DIR=./logs +# SUBSCRIBER_DIR will contain all the measurments +# received from the publishers +SUBSCRIBER_DIR=./data # LOG_INTERVAL determined the duration # of a logging period. At the end of a logging period, # a file with all the power measurements is generated by the logger in LOGGERS_DIR |
