-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stub finder class. Will take over finder message duties
- Loading branch information
Showing
3 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
Copyright (C) 2011 J. Coliz <maniacbug@ymail.com> | ||
This program is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU General Public License | ||
version 2 as published by the Free Software Foundation. | ||
*/ | ||
|
||
// STL headers | ||
// C headers | ||
// Framework headers | ||
// Library headers | ||
// Project headers | ||
// This component's header | ||
#include <Finder.h> | ||
|
||
/****************************************************************************/ | ||
|
||
// vim:cin:ai:sts=2 sw=2 ft=cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
Copyright (C) 2011 J. Coliz <maniacbug@ymail.com> | ||
This program is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU General Public License | ||
version 2 as published by the Free Software Foundation. | ||
*/ | ||
|
||
#ifndef __FINDER_H__ | ||
#define __FINDER_H__ | ||
|
||
// STL headers | ||
// C headers | ||
// Framework headers | ||
// Library headers | ||
// Project headers | ||
|
||
/** | ||
* Example for how classes should be declared | ||
*/ | ||
|
||
class Finder | ||
{ | ||
private: | ||
protected: | ||
public: | ||
}; | ||
|
||
#endif // __FINDER_H__ | ||
// vim:cin:ai:sts=2 sw=2 ft=cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,19 @@ | ||
This is the 'receiver' for the unit tests. Run it on a node which | ||
is NOT under test. | ||
|
||
TODO | ||
|
||
Send finder request needs a re-think. It needs to be re-implemented as a Tictocs::Timer, so it | ||
doesn't block the loop(). | ||
|
||
I could also make Tictocs objects which monitor the RF24network and pull off messages that are just | ||
for them. Likewise, the network can raise a signal when there is a new message. Although I would not | ||
want to put that into the library for fear of adding a dependency. | ||
|
||
so the finder needs to maintain state | ||
- Waiting: Waiting for a finder request | ||
- Sending: In the midst of looping through children | ||
|
||
Needs to have some delay between each send. So the finder has a timer component. | ||
|
||
Also... Reset should also reset the internal copy of the sync data. Sync may need a 'reset' method. |