ESP_IOT v2.5
IOT ESP Coding
StepperModule.h File Reference
#include "../../Defines.h"
Include dependency graph for StepperModule.h:
This graph shows which files directly or indirectly include this file:

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...
 

Macro Definition Documentation

◆ LED

#define LED   2

Definition at line 54 of file StepperModule.h.

◆ MINI

#define MINI   2

Definition at line 51 of file StepperModule.h.

◆ TUMBLER

#define TUMBLER   3

Definition at line 52 of file StepperModule.h.

◆ UNO

#define UNO   1

Definition at line 50 of file StepperModule.h.

Function Documentation

◆ getBuzzStatus_StepperModule()

boolean getBuzzStatus_StepperModule ( )

retrieves the buzzer status

retrieves the buzzer status

Definition at line 43 of file StepperModule.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFeederType()

int getFeederType ( )

retreives the feeder type, UNO or MINI

retreives the feeder type, UNO or MINI

Definition at line 50 of file StepperModule.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loop_StepperModule()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setup_StepperModule()

void setup_StepperModule ( )

called on setup()

Definition at line 56 of file StepperModule.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stepperModule_ProcessClientCmdFinal()

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.

Here is the call graph for this function:
Here is the caller graph for this function: