Gocator API
 All Classes Files Functions Variables Typedefs Macros Modules Pages
kStatus GoSensor_WaitForBuddies ( GoSensor  sensor,
k64u  timeout 
)

Waits for all buddies to be connected within a specific timeout.

If GoSensor_CheckConnectedBuddies was called before this function it'll wait for all buddies that were connected at that time. Otherwise it'll wait for all added buddies.

Parameters
sensorGoSensor object.
timeouta timeout in milliseconds to wait for all required buddies to get connected
Returns
Operational status: kOK if all required buddies are connected within specified timeout; otherwise kERROR_TIMEOUT