pfodParser  3.61.0
The pfodParser library is handles commands sent from the Android pfodApp, pfodApp supports WiFi, BLE, Bluetooth and SMS connections
pfodRawCmdParser.h File Reference
#include "Arduino.h"
#include "pfodStream.h"
#include "pfodParser.h"

Go to the source code of this file.

Classes

class  pfodRawCmdParser
 

Macros

#define pfod_MAYBE_UNUSED(x)   (void)(x)
 pfodRawCmdParser for Arduino Parses commands of the form { cmd | arg1 arg2 ... More...
 

Macro Definition Documentation

◆ pfod_MAYBE_UNUSED

#define pfod_MAYBE_UNUSED (   x)    (void)(x)

pfodRawCmdParser for Arduino Parses commands of the form { cmd | arg1 arg2 ...

} Arguments are separated by The | and the args are optional This is a complete paser for ALL commands a pfodApp will send to a pfodDevice see www.pfod.com.au for more details.

pfodRawCmdParser adds about 482 bytes to the program and uses about 260 bytes RAM

The pfodRawCmdParser parses messages of the form { cmd | arg1 arg2 ... } The message is parsed into the args array by replacing '|', '‘’ and '}' with '/0' (null) When the the end of message } is seen parse() returns the first byte of the cmd getCmd() returns a pointer to the null terminated cmd skipCmd() returns a pointer to the first arg (null terminated) or a pointer to null if there are no args getArgsCount() returns the number of args found. These calls are valid until the start of the next msg { is parsed. At which time they are reset to empty command and no args.

Definition at line 39 of file pfodRawCmdParser.h.