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

pfod_Base.h
Go to the documentation of this file.
1 #ifndef pfod_Base_h
2 #define pfod_Base_h
8 /*
9 * (c)2014-2017 Forward Computing and Control Pty. Ltd.
10 * NSW Australia, www.forward.com.au
11 * This code is not warranted to be fit for any purpose. You may only use it at your own risk.
12 * This code may be freely used for both private and commercial use
13 * Provide this copyright is maintained.
14 */
15
16 #include "pfodStream.h"
17
18 class pfod_Base : public Stream {
19 public:
20 // The subclasses, pfod_Base_xxx, must override all the methods below
21 virtual bool connect(); // returns true if connected else false, may block for a little while
22 virtual void setDebugStream(Print* out); // for pfod_Base_xxx debugging
23 virtual Print* getRawDataOutput() = 0; // for pfod_Base_xxx to supply object to pfodSecurity
24 // (actually a pfod_Base_rawOutput object is returned)
25 virtual void _setLinkTimeout(unsigned long _linkTimeout_mS); // set by pfodSecurity from idleTimeout not set for client
26 virtual size_t writeRawData(uint8_t c) = 0; // for pfod_Base_xxx, used by pfod_Base_rawOutput object
27 virtual size_t write(uint8_t); // for Print
28 virtual int available(); // for Stream
29 virtual int read() = 0; // for Stream
30 virtual int peek(); // for Stream
31 virtual void flush(); // for Stream
32 virtual void _closeCurrentConnection()=0;
33 virtual unsigned long getDefaultTimeOut() = 0; // 600sec for SMS
34 protected:
35 };
36 #endif //pfod_Base_h
pfod_Base
pfod_Base for Arduino Base class for all pfod_Base_xxxx classes The subclasses pfod_Base_xxx must ove...
Definition: pfod_Base.h:18
pfod_Base::getDefaultTimeOut
virtual unsigned long getDefaultTimeOut()=0
pfod_Base::getRawDataOutput
virtual Print * getRawDataOutput()=0
pfod_Base::_setLinkTimeout
virtual void _setLinkTimeout(unsigned long _linkTimeout_mS)
pfod_Base::read
virtual int read()=0
pfod_Base::available
virtual int available()
pfod_Base::connect
virtual bool connect()
pfod_Base::write
virtual size_t write(uint8_t)
pfod_Base::setDebugStream
virtual void setDebugStream(Print *out)
pfod_Base::peek
virtual int peek()
pfod_Base::_closeCurrentConnection
virtual void _closeCurrentConnection()=0
pfod_Base::writeRawData
virtual size_t writeRawData(uint8_t c)=0
pfod_Base::flush
virtual void flush()
pfodStream.h