The XBeeEmulator module emulates the connection between XBee RF modules to allow for testing without the need of setting up physical hardware. It utilizes MQTT and its publisher/subscriber architecture and can be used in pace of the base XBee module for quick prototyping.
Warning
The XBeeEmulator module does not serve as a one to one replacement of the XBee module. Please note that there may be discrepancies between the XBeeEmulator and XBee modules.
In the script where you are importing the XBee library, import the XBeeEmulator module instead of the Xbee module.
from xbee import XbeeEmulator as XBeeNavigate to the xbee library and create a .env file at the following directory:
./xbee-python/src/xbee/Note
If you installed the xbee-python library without using the -e option, you may need to place the .env file in your root directory.
The .env file should have the following fields. Set host to the mqtt broker address. You can host a broker yourself, or contact GCS Infrastructure for the broker address:
host= #MQTT HOST ADDRESS
port=8883
keepalive=60TODO