caf_iot/proxy_iot_cron

A proxy to access the cron service.

Source:

Extends

Methods

addCron(cronName, methodName, args, interval, optionsopt)

Source:

Adds a new cron.

The type of cronOptionsType is:

   {noSync: boolean}

where noSync skips cloud synchronization.

Parameters:
Name Type Attributes Description
cronName string

The unique id of the cron.

methodName string

Object method name to call.

args Array.<jsonType>

The arguments for the call.

interval number

Time between calls in msec.

options cronOptionsType <optional>

Hint on how to process cron messages.

deleteCron(cronName)

Source:

Deletes a cron.

Parameters:
Name Type Description
cronName string

The unique id of the cron.