A watcher of wifi information
TheWatcher constructor
| Param: |
|
|---|
TheWatcher constructor
| Param: |
|
|---|
Methods
| __init__(query, storage, fields[, ...]) | TheWatcher constructor | ||
| check_rep() | Checks that the querier has the fields passed in | ||
| close() | sets stopped to true, closes storage | ||
| log_data(*args, **kwargs) | |||
| log_error(error[, message]) | Logs the error in bold red | ||
| run() | The method to be called by the BaseThreadClass’ run_thread | ||
| run_thread(*args, **kwargs) |
|
||
| stop() |
|
Attributes
| header |
|
||
| logger |
|
||
| thread | This passes no arguments to run_thread – override if needed | ||
| timer | An event timer for the wait decorator to keep time |
Checks that the querier has the fields passed in
sets stopped to true, closes storage
Logs the error in bold red
| Param: |
|
|---|
The method to be called by the BaseThreadClass’ run_thread
| Param: | Whatever self.run accepts |
|---|---|
| Precondition: | self.run method exists and is thread-safe |
| Postcondition: | self.stopped is True |
|---|
| Returns: | fields joined by separator to use as first line of data output |
|---|
| Returns: | A logging object. |
|---|
This passes no arguments to run_thread – override if needed
| Returns: | threading.Thread with self.run_thread as target and daemon True |
|---|
An event timer for the wait decorator to keep time
| Returns: | strftime string format for datetime |
|---|