caf_iot/proxy_iot_cloud

A proxy to access the CAF.js cloud service.

Source:

Extends

Members

cli :Object

Source:
See:

A client session to the CA.

Type:
  • Object

Methods

getMethodArgs(msg) → {Array.<jsonType>}

Source:

Gets original method arguments from message.

Parameters:
Name Type Description
msg msgType

A message

Throws:

when invalid message.

Type
Error
Returns:

An array with method arguments.

Type
Array.<jsonType>

registerHandler(handler)

Source:

Installs a handler for notifications from cloud.

The default handler logs the notification and forces a full cycle that syncs with the cloud.

Disables the handler when the argument is null.

Parameters:
Name Type Description
handler function

A function of type function(msgType) to process notifications.