pfodParser 3.61.0 The pfodParser library is handles commands sent from the Android pfodApp, pfodApp supports WiFi, BLE, Bluetooth and SMS connections

Public Member Functions | Static Public Attributes | List of all members
pfodParser Class Reference

`#include <pfodParser.h>`

Inherits Print.

Inherited by pfodSecurity.

## Public Member Functions
| pfodParser ()
| pfodParser (const char *version)
virtual size_t | write (uint8_t c)
virtual size_t | write (const uint8_t *buffer, size_t size)
virtual void | flush ()
virtual int | read ()
virtual int | peek ()
virtual int | available ()
virtual void | connect (Stream *ioPtr)
virtual void | closeConnection ()
virtual byte | parse ()
virtual bool | isRefresh ()
virtual const char * | getVersionRequested ()
virtual const char * | getVersion ()
virtual void | setVersion (const char *version)
virtual void | sendVersion ()
virtual void | sendRefreshAndVersion (unsigned long refresh_mS)
virtual byte * | getCmd ()
virtual byte * | getFirstArg ()
virtual byte * | getNextArg (byte *start)
virtual byte | getArgsCount ()
virtual byte * | parseLong (byte *idxPtr, long *result)
virtual bool | cmdEquals (const char *cmdStr)
virtual bool | cmdEquals (const char cmdChar)
virtual bool | cmdEquals (pfodAutoCmd &a_Cmd)
virtual void | addDwg (pfodDrawing *dwgPtr)
virtual byte | getParserState ()
| pfodWaitingForStart if outside msg pfodMsgStarted if just seen opening { pfodInMsg in msg after { pfodMsgEnd if just seen closing } More...
virtual void | setCmd (byte cmd)
virtual void | setDebugStream (Print *debugOut)
virtual void | setDebugOut (Print *out)
virtual void | setDebug (Print *out)
virtual void | setIdleTimeout (unsigned long timeout)
virtual Stream * | getPfodAppStream ()
void | init ()
virtual byte | parse (byte in)
virtual void | ignoreSeqNum ()
virtual byte | parseDwgCmd ()
virtual const byte * | getDwgCmd ()
virtual bool | dwgCmdEquals (const char *dwgCmdStr)
virtual bool | dwgCmdEquals (pfodAutoCmd &a_Cmd)
virtual bool | dwgCmdEquals (const char dwgCmd)
virtual bool | isTouch ()
virtual bool | isClick ()
virtual bool | isDown ()
virtual bool | isDrag ()
virtual bool | isUp ()
virtual bool | isPress ()
virtual const byte * | getEditedText ()
virtual uint8_t | getTouchType ()
virtual int | getTouchedCol ()
virtual int | getTouchedRow ()
virtual int | getTouchedY ()
virtual int | getTouchedX ()

## Static Public Attributes
static const byte | pfodMaxMsgLen = 0xff
static const byte | pfodWaitingForStart = 0xff
static const byte | pfodMsgStarted = '{'
static const byte | pfodRefresh = ':'
static const byte | pfodInMsg = 0
static const byte | pfodMsgEnd = '}'
static const int | TOUCH = 0
static const int | DOWN = 1
static const int | DRAG = 2
static const int | UP = 4
static const int | CLICK = 8
static const int | PRESS = 16
static const int | DOWN_UP = 256
static const int | TOUCH_DISABLED = 512

## Detailed Description

Definition at line 48 of file pfodParser.h.

## Constructor & Destructor Documentation

## ◆ pfodParser() [1/2]

pfodParser::pfodParser | ( |  | ) |

## ◆ pfodParser() [2/2]

pfodParser::pfodParser | ( | const char * | version | ) |

## Member Function Documentation

## ◆ addDwg()

virtual void pfodParser::addDwg | ( | pfodDrawing * | dwgPtr | ) |
| virtual

Reimplemented in pfodSecurity.

## ◆ available()

virtual int pfodParser::available | ( |  | ) |
| virtual

Reimplemented in pfodSecurity.

## ◆ closeConnection()

virtual void pfodParser::closeConnection | ( |  | ) |
| virtual

Reimplemented in pfodSecurity.

## ◆ cmdEquals() [1/3]

virtual bool pfodParser::cmdEquals | ( | const char * | cmdStr | ) |
| virtual

## ◆ cmdEquals() [2/3]

virtual bool pfodParser::cmdEquals | ( | const char | cmdChar | ) |
| virtual

## ◆ cmdEquals() [3/3]

virtual bool pfodParser::cmdEquals | ( | pfodAutoCmd & | a_Cmd | ) |
| virtual

## ◆ connect()

virtual void pfodParser::connect | ( | Stream * | ioPtr | ) |
| virtual

Reimplemented in pfodSecurity.

## ◆ dwgCmdEquals() [1/3]

virtual bool pfodParser::dwgCmdEquals | ( | const char * | dwgCmdStr | ) |
| virtual

## ◆ dwgCmdEquals() [2/3]

virtual bool pfodParser::dwgCmdEquals | ( | const char | dwgCmd | ) |
| virtual

## ◆ dwgCmdEquals() [3/3]

virtual bool pfodParser::dwgCmdEquals | ( | pfodAutoCmd & | a_Cmd | ) |
| virtual

## ◆ flush()

virtual void pfodParser::flush | ( |  | ) |
| virtual

Reimplemented in pfodSecurity.

## ◆ getArgsCount()

virtual byte pfodParser::getArgsCount | ( |  | ) |
| virtual

## ◆ getCmd()

virtual byte* pfodParser::getCmd | ( |  | ) |
| virtual

## ◆ getDwgCmd()

virtual const byte* pfodParser::getDwgCmd | ( |  | ) |
| virtual

## ◆ getEditedText()

virtual const byte* pfodParser::getEditedText | ( |  | ) |
| virtual

## ◆ getFirstArg()

virtual byte* pfodParser::getFirstArg | ( |  | ) |
| virtual

## ◆ getNextArg()

virtual byte* pfodParser::getNextArg | ( | byte * | start | ) |
| virtual

## ◆ getParserState()

virtual byte pfodParser::getParserState | ( |  | ) |
| virtual

pfodWaitingForStart if outside msg pfodMsgStarted if just seen opening { pfodInMsg in msg after { pfodMsgEnd if just seen closing }

## ◆ getPfodAppStream()

virtual Stream* pfodParser::getPfodAppStream | ( |  | ) |
| virtual

Reimplemented in pfodSecurity.

## ◆ getTouchedCol()

virtual int pfodParser::getTouchedCol | ( |  | ) |
| virtual

## ◆ getTouchedRow()

virtual int pfodParser::getTouchedRow | ( |  | ) |
| virtual

## ◆ getTouchedX()

virtual int pfodParser::getTouchedX | ( |  | ) |
| virtual

## ◆ getTouchedY()

virtual int pfodParser::getTouchedY | ( |  | ) |
| virtual

## ◆ getTouchType()

virtual uint8_t pfodParser::getTouchType | ( |  | ) |
| virtual

## ◆ getVersion()

virtual const char* pfodParser::getVersion | ( |  | ) |
| virtual

## ◆ getVersionRequested()

virtual const char* pfodParser::getVersionRequested | ( |  | ) |
| virtual

## ◆ ignoreSeqNum()

virtual void pfodParser::ignoreSeqNum | ( |  | ) |
| virtual

## ◆ init()

void pfodParser::init | ( |  | ) |

## ◆ isClick()

virtual bool pfodParser::isClick | ( |  | ) |
| virtual

## ◆ isDown()

virtual bool pfodParser::isDown | ( |  | ) |
| virtual

## ◆ isDrag()

virtual bool pfodParser::isDrag | ( |  | ) |
| virtual

## ◆ isPress()

virtual bool pfodParser::isPress | ( |  | ) |
| virtual

## ◆ isRefresh()

virtual bool pfodParser::isRefresh | ( |  | ) |
| virtual

## ◆ isTouch()

virtual bool pfodParser::isTouch | ( |  | ) |
| virtual

## ◆ isUp()

virtual bool pfodParser::isUp | ( |  | ) |
| virtual

## ◆ parse() [1/2]

virtual byte pfodParser::parse | ( |  | ) |
| virtual

Reimplemented in pfodSecurity.

## ◆ parse() [2/2]

virtual byte pfodParser::parse | ( | byte | in | ) |
| virtual

## ◆ parseDwgCmd()

virtual byte pfodParser::parseDwgCmd | ( |  | ) |
| virtual

## ◆ parseLong()

virtual byte* pfodParser::parseLong | ( | byte * | idxPtr,
|  | long * | result
| ) |  |
| virtual

## ◆ peek()

virtual int pfodParser::peek | ( |  | ) |
| virtual

Reimplemented in pfodSecurity.

## ◆ read()

virtual int pfodParser::read | ( |  | ) |
| virtual

Reimplemented in pfodSecurity.

## ◆ sendRefreshAndVersion()

virtual void pfodParser::sendRefreshAndVersion | ( | unsigned long | refresh_mS | ) |
| virtual

## ◆ sendVersion()

virtual void pfodParser::sendVersion | ( |  | ) |
| virtual

## ◆ setCmd()

virtual void pfodParser::setCmd | ( | byte | cmd | ) |
| virtual

## ◆ setDebug()

virtual void pfodParser::setDebug | ( | Print * | out | ) |
| inline virtual

Definition at line 101 of file pfodParser.h.

## ◆ setDebugOut()

virtual void pfodParser::setDebugOut | ( | Print * | out | ) |
| inline virtual

Definition at line 100 of file pfodParser.h.

## ◆ setDebugStream()

virtual void pfodParser::setDebugStream | ( | Print * | debugOut | ) |
| virtual

Reimplemented in pfodSecurity.

## ◆ setIdleTimeout()

virtual void pfodParser::setIdleTimeout | ( | unsigned long | timeout | ) |
| virtual

Reimplemented in pfodSecurity.

## ◆ setVersion()

virtual void pfodParser::setVersion | ( | const char * | version | ) |
| virtual

## ◆ write() [1/2]

virtual size_t pfodParser::write | ( | const uint8_t * | buffer,
|  | size_t | size
| ) |  |
| virtual

Reimplemented in pfodSecurity.

## ◆ write() [2/2]

virtual size_t pfodParser::write | ( | uint8_t | c | ) |
| virtual

Reimplemented in pfodSecurity.

## Member Data Documentation

## ◆ CLICK

const int pfodParser::CLICK = 8
| static

Definition at line 138 of file pfodParser.h.

## ◆ DOWN

const int pfodParser::DOWN = 1
| static

Definition at line 135 of file pfodParser.h.

## ◆ DOWN_UP

const int pfodParser::DOWN_UP = 256
| static

Definition at line 142 of file pfodParser.h.

## ◆ DRAG

const int pfodParser::DRAG = 2
| static

Definition at line 136 of file pfodParser.h.

## ◆ pfodInMsg

const byte pfodParser::pfodInMsg = 0
| static

Definition at line 97 of file pfodParser.h.

## ◆ pfodMaxMsgLen

const byte pfodParser::pfodMaxMsgLen = 0xff
| static

Definition at line 63 of file pfodParser.h.

## ◆ pfodMsgEnd

const byte pfodParser::pfodMsgEnd = '}'
| static

Definition at line 98 of file pfodParser.h.

## ◆ pfodMsgStarted

const byte pfodParser::pfodMsgStarted = '{'
| static

Definition at line 95 of file pfodParser.h.

## ◆ pfodRefresh

const byte pfodParser::pfodRefresh = ':'
| static

Definition at line 96 of file pfodParser.h.

## ◆ pfodWaitingForStart

const byte pfodParser::pfodWaitingForStart = 0xff
| static

Definition at line 94 of file pfodParser.h.

## ◆ PRESS

const int pfodParser::PRESS = 16
| static

Definition at line 139 of file pfodParser.h.

## ◆ TOUCH

const int pfodParser::TOUCH = 0
| static

Definition at line 134 of file pfodParser.h.

## ◆ TOUCH_DISABLED

const int pfodParser::TOUCH_DISABLED = 512
| static

Definition at line 143 of file pfodParser.h.

## ◆ UP

const int pfodParser::UP = 4
| static

Definition at line 137 of file pfodParser.h.