TOBI plaform iD client program.
#include <string>
#include <iostream>
#include <unistd.h>
#include <tobiplatform/TPiD.hpp>
#include <tobiid/IDMessage.hpp>
#include <tobiid/IDSerializerRapid.hpp>
#include <tobicore/TCTime.hpp>
int main(void) {
IDMessage message(IDMessage::FamilyBiosig, 1000);
#ifdef ENDLESS
while(true) {
#endif
std::cout << "Initializing iD client and trying to plug-in" << std::endl;
#ifdef ENDLESS
std::cout << "Cannot plug iD client: trying in 5 seconds" << std::endl;
continue;
#else
std::cout << "Cannot plug iD client" << std::endl;
return false;
#endif
}
while(true) {
break;
std::cout << "iD message sent: " << frame << "/" << aframe << std::endl;
std::cout << "iD message received: " << std::endl;
}
}
std::cout << "iD server is down" << std::endl;
#ifdef ENDLESS
}
#endif
return 0;
}