Minor changes

This commit is contained in:
Loic Guegan 2023-07-15 19:45:32 +02:00
parent 831c3999b4
commit 3ed96f9c9a
3 changed files with 7 additions and 3 deletions

2
.gitignore vendored
View file

@ -5,4 +5,4 @@
# Caches # Caches
/logs /logs
/cdata /data

View file

@ -15,10 +15,11 @@ logger: src/logger.c src/utils.c
$(CC) $^ -o $@ $(CC) $^ -o $@
publish: publisher logger 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 subscribe: subscriber
$(error "Not yet implemented") ./subscriber $(ZMQ_PORT) $(SUBSCRIBER_DIR)
clean: clean:
rm -f logger subscriber publisher rm -f logger subscriber publisher

View file

@ -6,6 +6,9 @@ SUBSCRIBER_ADDR=localhost
# LOGGERS_DIR will contains all the data generated by the loggers # LOGGERS_DIR will contains all the data generated by the loggers
# a.k.a the ina260 power measurements # a.k.a the ina260 power measurements
LOGGERS_DIR=./logs LOGGERS_DIR=./logs
# SUBSCRIBER_DIR will contain all the measurments
# received from the publishers
SUBSCRIBER_DIR=./data
# LOG_INTERVAL determined the duration # LOG_INTERVAL determined the duration
# of a logging period. At the end of a logging period, # 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 # a file with all the power measurements is generated by the logger in LOGGERS_DIR