tg_rfmespgw_-_esp8266_to_moteino_gateway
TG_RFMESPGQ - ESP8266 to Moteino Gateway
I looked at marrying an RFM69 radio to an ESP8266 and decided to go with the dual processor approach for simplicity. A stock Anarduino is bolted onto an Adafruit Huzzah. The Anarduino does RF processing and sends packets to/from the serial port. The Huzzah on the serial port translates the packets to MQTT messages.
The gateway maps the messages from the Moteinos to the right MQTT topic.
Some guidance can be obtained by a post in the Tinkerman blog:
The gateway expects to receive messages with the key, the value and optionally the packetID (from the sender point of view) separated by colons (i.e. “BAT:2890:34”). This format is not the best in terms of size, but it’s compatible with Rusu’s MotionMote, for instance, and I had already used it in my XBee network. You can then map the combination of nodeID (available in the header of the message) and key to an MQTT topic.
You can also define a default topic that will be used when no match has been found in the map. The default topic can contain {nodeid} and {key} as placeholders to create custom on-the-fly MQTT topics.
Wiring | |
---|---|
Moteino | ESP8266 Huzzah |
GND | GND |
VIN | V+ (5V) |
n/c | 3.3V |
TX out | RX |
RX in | TX |
tg_rfmespgw_-_esp8266_to_moteino_gateway.txt · Last modified: 2019/10/13 14:41 by 192.168.1.15