ESP_IOT v2.5
IOT ESP Coding
|
#include "../../Defines.h"
Go to the source code of this file.
Macros | |
#define | UNO 1 |
#define | MINI 2 |
#define | TUMBLER 3 |
#define | LED 2 |
Functions | |
void | loop_StepperModule () |
the main loop for the StepperModule (this is the FeederStateMachine) More... | |
void | setup_StepperModule () |
called on setup() More... | |
void | stepperModule_ProcessClientCmdFinal (char cmd) |
the Blink the LED - and it will use the latest BUZZER status (so MQTT could set buzzer on.. then call this) More... | |
int | getFeederType () |
retreives the feeder type, UNO or MINI More... | |
boolean | getBuzzStatus_StepperModule () |
retrieves the buzzer status More... | |
#define LED 2 |
Definition at line 54 of file StepperModule.h.
#define MINI 2 |
Definition at line 51 of file StepperModule.h.
#define TUMBLER 3 |
Definition at line 52 of file StepperModule.h.
#define UNO 1 |
Definition at line 50 of file StepperModule.h.
boolean getBuzzStatus_StepperModule | ( | ) |
retrieves the buzzer status
retrieves the buzzer status
Definition at line 43 of file StepperModule.cpp.
int getFeederType | ( | ) |
retreives the feeder type, UNO or MINI
retreives the feeder type, UNO or MINI
Definition at line 50 of file StepperModule.cpp.
void loop_StepperModule | ( | ) |
the main loop for the StepperModule (this is the FeederStateMachine)
the main loop for the StepperModule (this is the FeederStateMachine)
Definition at line 110 of file StepperModule.cpp.
void setup_StepperModule | ( | ) |
called on setup()
Definition at line 56 of file StepperModule.cpp.
void stepperModule_ProcessClientCmdFinal | ( | char | cmd | ) |
the Blink the LED - and it will use the latest BUZZER status (so MQTT could set buzzer on.. then call this)
SerialDebug.println("Valid Commands: "); SerialDebug.println(" H == help, this message"); SerialDebug.println(" 0x0, s, c == Single Feed "); SerialDebug.println(" a == AutoFeed "); SerialDebug.println(" u == UNO "); SerialDebug.println(" m == MINI "); SerialDebug.println(" L == Tumbler "); SerialDebug.println(" B == Buzzer On"); SerialDebug.println(" b == Buzzer Off"); SerialDebug.println(" G == Gateway On"); SerialDebug.println(" g == gateway Off"); SerialDebug.println(" R == clean credentials"); SerialDebug.println(" O == OTA update"); SerialDebug.println(" X == clean EPROM"); SerialDebug.println(" T == tilt on"); SerialDebug.println(" t == tilt off"); processes a single character command from BLE (or from MQTT converted to a single character)
NOTE: There are other commands, but these are only the ones that require a action. TODO: make these "events" on the setting of those values. eg. register for stepperValue true or false, etc.. They would be invoked from the 'savePreferencesBoolean' call.
Definition at line 66 of file StepperModule.cpp.