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