#ifdef WIN32
#define SER_PORT "\\\\.\\COM3" //COM43
#else
#define SER_PORT "/dev/ttyUSB0"
#endif
#define LOAD_CONFIG "./learned.txt"
#include <stdio.h>
int main(int argc, const char* argv[])
{
(void)argc;
(void)argv;
printf("Opening Connection to USB300 \n");
{
printf("Failed to open USB300\n");
return 0;
}
printf("Prepare to Load Config \n");
myStore.
Load(LOAD_CONFIG);
uint16_t recv;
printf("Gateway is running \n");
while (1)
{
{
printf(
"Device %08X\n", myGateway.
device->
ID);
float f;
{
printf(" %.2f \n", f);
if(f>30.0)
{
myGateway.
Send(myMessage);
}
}
}
}
return 0;
}