The following example demonstrates how to use the Go2System class.
#include <Go2.h>
void main()
{
Go2System system = 0;
//Open the Go2 library.
Go2Api_Initialize();
//Construct a Gocator 2000 system object.
Go2System_Construct(&system);
//Connect to default sensor IP address, with default password (blank).
Go2System_Connect(system, GO2_DEFAULT_IP_ADDRESS, GO2_USER_ADMIN, “”);
//Reconfigure system to use time-based triggering.
Go2System_SetTriggerSource(system, GO2_TRIGGER_SOURCE_TIME);
//Send the system a “Start” command.
Go2System_Start(system);
//Free the system object.
Go2System_Destroy(system);
//Close the Go2 library.
Go2Api_Terminate();
}