Implements a remote Meshtastic node that allows for the control of outputs and reports back the status of the outputs and inputs. The inputs and outputs can be digital or analog and are easily configured my editing the input and output array. Each remote Meshtastic node can have a node name, defined by the NODENAME string. This allows multiple remote nodes to share the same Meshtastic serial/data channel and respond to controls for each node.
Below is a picture of remote node, which is constructed using a Heltec v3 as the Meshtastic radio and an Adafruit Huzzah ESP8266 Module as the controller. The Huzzah module is connected to two LEDs, a push button, and a trim pot to demonstrate a digital output (red LED), analog (PWM) output (green LED), digital input (pushbutton), and analog input (trimpot) being controlled and reported from another Meshtastic node thru the Meshtastic network.
Picture available at https://github.com/jonw0224/Meshtastic-Heltec3-ESP8266-IO/blob/main/Pictures/Picture.jpeg
Schematic available at https://github.com/jonw0224/Meshtastic-Heltec3-ESP8266-IO/blob/main/Schematic/Meshtastic-ESP8266/Meshtastic-ESP8266.pdf
Get the Heltec v3 radios
Set up the a serial/data radio channel on each node. This channel must be the set up on the PRIMARY channel, because the serial module sends messages on the PRIMARY channel. It is recommended that you don't use the default public Meshtastic channel as the PRIMARY channel and instead use your own private channel to (1) limit who can control your device, (2) avoid spamming the public channel with telemetry control and status messages.
