Module: caf_iot/proxy_iot_cloud

A proxy to access the CAF.js cloud service.

Source:

Extends

Members

cli :Object

A client session to the CA.

Type:
  • Object
Source:
See:

Methods

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

Gets original method arguments from message.

Parameters:
Name Type Description
msg msgType

A message

Source:
Throws:

when invalid message.

Type
Error
Returns:

An array with method arguments.

Type
Array.<jsonType>

registerHandler(handler)

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 | null

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

Source: