Minor changes

This commit is contained in:
Loic Guegan 2023-07-16 10:59:05 +02:00
parent 565984ed49
commit f98bd0db78
2 changed files with 4 additions and 9 deletions

View file

@ -6,7 +6,7 @@ A ZeroMQ-based power monitoring publisher for the ina260 chip. This repository p
- `publisher`: that continuously publish using the ZeroMQ pub/sub communication pattern
- `subscriber`: a client that collect the measurements from the publishers (broker, frontend etc...)
*Note: Nothing is stored locally! Everything that is published by the publisher is either receive by a subscriber or lost.*
*Note: Nothing is stored locally! Everything that is published by the publishers is either received by the subscriber or lost.*
### Compilation
The only dependency is [ZeroMQ](https://zeromq.org/). After installing the ZeroMQ library, the following will generate all the executables:
@ -15,10 +15,5 @@ The only dependency is [ZeroMQ](https://zeromq.org/). After installing the ZeroM
### Deployment
1. Update `config.mk` according to you needs
2. On the nodes equiped with the ina260 chips:
$ make publish
3. One the node that collect the measurements (broker, frontend etc..):
$ make subscribe
2. On the nodes equiped with the ina260 chips run `make publish`
3. On the node that collect the measurements (broker, frontend etc..) run `make subscribe`

View file

@ -1,7 +1,7 @@
##### ZeroMQ
# ZMQ_PORT is the port used for all communications
ZMQ_PORT=5556
# SUBSCRIBER_ADDR is used by the publisher
# SUBSCRIBER_ADDR is used by the publishers
# to contact the subscriber
SUBSCRIBER_ADDR=localhost
# ZMQ_TOKEN is used by ZeroMQ to detect