mirror of
https://gitlab.com/manzerbredes/ina260-zmq-publisher.git
synced 2025-04-07 04:16:26 +02:00
Minor changes
This commit is contained in:
parent
831c3999b4
commit
3ed96f9c9a
3 changed files with 7 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -5,4 +5,4 @@
|
||||||
|
|
||||||
# Caches
|
# Caches
|
||||||
/logs
|
/logs
|
||||||
/cdata
|
/data
|
5
Makefile
5
Makefile
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue