ArduinoDumbDisplay v0.9.9-r40
DumbDisplay Arduino Library -- https://github.com/trevorwslee/Arduino-DumbDisplay
 
Loading...
Searching...
No Matches
DDConnectVersionTracker Class Reference

Helper class for tracking connection "version" change. More...

#include <_dd_misc.h>

Public Member Functions

 DDConnectVersionTracker (int version=0)
 
bool checkChanged (DumbDisplay &dumbdisplay)
 

Detailed Description

Helper class for tracking connection "version" change.

  • initial connection will have version 1
  • when reconnected (after disconnect) version will be incremented every such event

Constructor & Destructor Documentation

◆ DDConnectVersionTracker()

DDConnectVersionTracker::DDConnectVersionTracker ( int  version = 0)
inline
Parameters
versionstart-off version number; 0 so that it will be considered a version change even when first start, 1 if only want to detect re-connect