research application on sending data to headend

Dependencies:   DataStore JobScheduler NetworkServices W5500Interface nanopb protocol

See "main.cpp" documentation on "API Documentation" tab for details about application.

source/jobTestPrint.h

Committer:
sgnezdov
Date:
2017-08-11
Revision:
28:7214f7806526
Parent:
27:60c12f3f3430

File content as of revision 28:7214f7806526:

#pragma once

/** JobTestPrint is a job that simply prints a message to STDOUT. 

The class has no constructor, because it has no service dependenices.
This job is a great candidate for a simple C-function job example.

*/
class JobTestPrint {
    public:
    
    /** RunAdapter is scheduler callback function. 
    @param thisPointer provides job context, which is this class's instance.
    */
    static void RunAdapter(void *thisPointer) {
        JobTestPrint *self = static_cast<JobTestPrint*>(thisPointer);
        self->Run();
    }
    
    void Run();
};