From c27f799465a674de5c393f2de1e64108a93829ef Mon Sep 17 00:00:00 2001 From: Emran Billah Date: Wed, 28 Aug 2024 16:45:47 -0300 Subject: [PATCH] Updating readme --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4a5bdc4..a672f31 100644 --- a/README.md +++ b/README.md @@ -62,15 +62,16 @@ git clone https://git.spirirobotics.com/Spiri/services-xbee_net cd services-xbee_net ``` -#### 2. Modify `.env-...` File based on running single or multiple xbnets +#### 2. Run a single xbnet node using the following cmd: -The `.env` file contains the configuration parameters for the XBee network. You may need to update these parameters according to your specific setup. -- For a single xbnet setup, modify params in the `.env-run-single` -- For multi xbnet setup, modify params in the `.env-run-multiple` -#### (Note: Multi node xbnet setup is currently under progress) +```bash +- sh ./run-single.sh --subnet=7.7.7 --serial-speed=230400 --port=/dev/ttyUSB0 --interface-type=router +- sh ./run-single.sh --subnet=7.7.7 --serial-speed=230400 --port=/dev/ttyUSB0 --interface-type=gateway +``` --- -##### a. Sample `.env-run-single` config: + +##### Config `.env`: ```bash # Configuration for xbnet0 XBEE_PORT=/dev/ttyUSB0