We only need one constructor for the gateway sketch.
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* - Inclusion button should be connected between digital pin 3 and GND
|
* - Inclusion button should be connected between digital pin 3 and GND
|
||||||
* - RX/TX/ERR leds need to be connected between +5V (anode) and digital ping 6/5/4 with resistor 270-330R in a series
|
* - RX/TX/ERR leds need to be connected between +5V (anode) and digital ping 6/5/4 with resistor 270-330R in a series
|
||||||
*
|
*
|
||||||
* LED purposes:
|
* LEDs (OPTIONAL):
|
||||||
* - RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation recieved
|
* - RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation recieved
|
||||||
* - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly
|
* - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly
|
||||||
* - ERR (red) - fast blink on error during transmission error or recieve crc error
|
* - ERR (red) - fast blink on error during transmission error or recieve crc error
|
||||||
@@ -31,13 +31,8 @@
|
|||||||
#define INCLUSION_MODE_PIN 3 // Digital pin used for inclusion mode button
|
#define INCLUSION_MODE_PIN 3 // Digital pin used for inclusion mode button
|
||||||
|
|
||||||
|
|
||||||
// No blink or button functionality. Use the vanilla constructor.
|
|
||||||
//Gateway gw;
|
|
||||||
|
|
||||||
// To start gateway with include button and led blinking functionality enabled use this instead!
|
|
||||||
MyGateway gw(9, 10, INCLUSION_MODE_TIME, INCLUSION_MODE_PIN, 6, 5, 4);
|
MyGateway gw(9, 10, INCLUSION_MODE_TIME, INCLUSION_MODE_PIN, 6, 5, 4);
|
||||||
|
|
||||||
|
|
||||||
char inputString[MAX_RECEIVE_LENGTH] = ""; // A string to hold incoming commands from serial/ethernet interface
|
char inputString[MAX_RECEIVE_LENGTH] = ""; // A string to hold incoming commands from serial/ethernet interface
|
||||||
int inputPos = 0;
|
int inputPos = 0;
|
||||||
boolean commandComplete = false; // whether the string is complete
|
boolean commandComplete = false; // whether the string is complete
|
||||||
|
|||||||
Reference in New Issue
Block a user