caf_iot/plug_iot_queue

Queue to serialize command execution

Source:

Extends

Methods

__iot_progress__() → {boolean}

Source:

Internal only.

Checks for progress processing messages.

Returns:

True if message queue is empty or at least one message was processed since the last call to progress.

Type
boolean

process(methodName, args, optionsopt, cb0opt)

Source:

Enqueues a method call request.

Parameters:
Name Type Attributes Description
methodName string

The method name.

args Array.<jsonType>

The arguments.

options cronOptionsType <optional>

Hint on how to process the message. The noSync flag skips cloud synchronization.

cb0 cbType <optional>

A callback for errors/response.