summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-07-18 13:06:53 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2023-07-18 13:06:53 +0200
commitd489fa8d6dc9ea13b041c1fb658dd758b78908b0 (patch)
tree65428264fbb8b44e126b41975e0bdf17a6c4fac2
parent7f87211b01bcc116eba8b01b73677ea87172e8d7 (diff)
Minor changes
-rw-r--r--README.md3
-rw-r--r--config.mk13
2 files changed, 7 insertions, 9 deletions
diff --git a/README.md b/README.md
index 794fa29..c882733 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,7 @@
A ZeroMQ-based power monitoring publisher for the ina260 chip.\
This repository provides:
-- `logger`: that collects power measurements from the ina260 using the dedicated driver
-- `publisher`: that continuously publish the logger's data using the ZeroMQ pub/sub communication pattern
+- `publisher`: that collects power measurements from the ina260 using the dedicated driver with a thread that continuously publish the power measurements data using the ZeroMQ pub/sub communication pattern
- `subscriber`: a program that collects the measurements published by the publishers (used to create a broker, frontend etc...)
*Note: Nothing is stored locally! Everything that is published by the publishers is either received by the subscriber or lost.*
diff --git a/config.mk b/config.mk
index 15dd5d6..0414658 100644
--- a/config.mk
+++ b/config.mk
@@ -1,4 +1,4 @@
-##### ZeroMQ
+##### Network Communications
# ZMQ_PORT is the port used for all communications
ZMQ_PORT=5556
# SUBSCRIBER_ADDR is used by the publishers
@@ -12,21 +12,20 @@ ZMQ_TOKEN=ina260-zmq-publisher
# Units is bytes
ZMQ_MSG_SIZE=5242880
-##### Loggers/Publisher
+##### Publishers/Subscriber
# LOG_DELAY defines the delay between 2 consecutive
# ina260 power read performed by the logger
# Unit is milliseconds
-LOG_DELAY=1000
+LOG_DELAY=0
# 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 loggers in LOGGERS_DIR
-# This file, is then transmitted by the publishers to the subscriber
+# all the measurements are send by a publisher thread
# Unit is seconds
LOG_INTERVAL=20
-# KEY is attached to all the messages published by the node
-# It allows you to filter the messages received on the client
+# KEY is attached to all the messages published to the subscriber
+# It allows you to filter the messages on the publisher
# if you are using multiple monitoring nodes (multiple publishers)
KEY=node1 \ No newline at end of file