#ifdef WIN32
#define SER_PORT "\\\\.\\COM3" //COM43
#else
#define SER_PORT "/dev/ttyUSB0"
#endif
#define LOAD_CONFIG "./Tutorial2.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;
}
myStore.
Load(LOAD_CONFIG);
printf("Loaded Config \n");
uint16_t recv;
{
}
myGateway.
Send(myMessage);
while (1)
{
{
printf(
"Device %08X\n", myGateway.
device->
ID);
float f;
{
printf(" %.2f \n", f);
{
continue;
}
{
{
myGateway.
Send(myMessage);
}
}
}
}
}
return 0;
}