Schedules the campaign for activation.

API

int Iotc_CampaignScheduleActivation ( IotcSession * session, IotcCampaignId * campaignId, IotcCampaignScheduleTimeWindow * timeWindow )

Description

Sends a request to the Server to schedule the campaign for activation. If the time window is empty, it indicates that client is ready to activate the campaign. Otherwise, the supplied time window is used by the server to schedule the campaign to activate for this gateway.

Parameters
in session

Is the connected session returned as part of Iotc_Init call.

in campaignId

Is the campaign ID of the campaign that is scheduled for activation.

in timeWindow

Is the schedule time window for the campaign to activate.

Returns
0 on success.