Updating readme

This commit is contained in:
Emran Billah 2024-08-28 16:45:47 -03:00
parent 9005578876
commit c27f799465
1 changed files with 7 additions and 6 deletions

View File

@ -62,15 +62,16 @@ git clone https://git.spirirobotics.com/Spiri/services-xbee_net
cd 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. ```bash
- For a single xbnet setup, modify params in the `.env-run-single` - sh ./run-single.sh --subnet=7.7.7 --serial-speed=230400 --port=/dev/ttyUSB0 --interface-type=router
- For multi xbnet setup, modify params in the `.env-run-multiple` - sh ./run-single.sh --subnet=7.7.7 --serial-speed=230400 --port=/dev/ttyUSB0 --interface-type=gateway
#### (Note: Multi node xbnet setup is currently under progress) ```
--- ---
##### a. Sample `.env-run-single` config:
##### Config `.env`:
```bash ```bash
# Configuration for xbnet0 # Configuration for xbnet0
XBEE_PORT=/dev/ttyUSB0 XBEE_PORT=/dev/ttyUSB0