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/jobFakeADC.h
- Committer:
- sgnezdov
- Date:
- 2017-08-11
- Revision:
- 28:7214f7806526
- Parent:
- 27:60c12f3f3430
File content as of revision 28:7214f7806526:
#pragma once #include "mbed.h" #include "lceProxy.h" /** JobFakeADC is a job that simulates ADC data uploads to HE. */ class JobFakeADC { public: /** RunAdapter is scheduler callback function. @param thisPointer provides job context, which is this class's instance. */ static void RunAdapter(void *thisPointer) { JobFakeADC *self = static_cast<JobFakeADC*>(thisPointer); self->Run(); } /** JobFakeADC constructor takes services as dependencies. */ JobFakeADC(LceProxy& lce): _lce(lce), _next(1) {} void Run(); private: LceProxy& _lce; int _next; };