mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-14 06:23:07 +01:00
introduce a type safe task adta exchange interface
This commit is contained in:
14
lib/exampletask/GwIExampleTask.h
Normal file
14
lib/exampletask/GwIExampleTask.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef GWIEXAMPLETASK_H
|
||||
#define GWIEXAMPLETASK_H
|
||||
#include "GwApi.h"
|
||||
/**
|
||||
* an interface for the example task
|
||||
*/
|
||||
class ExampleIf : public GwApi::TaskInterfaces::Base{
|
||||
public:
|
||||
long count=0;
|
||||
String someValue;
|
||||
};
|
||||
DECLARE_TASKIF(exampleTask,ExampleIf);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user