diff options
| -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 |
