Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.01 KB

remote.md

File metadata and controls

51 lines (36 loc) · 1.01 KB

Device Remote Routes

Overview

The resources responsible for creating and managing device remote control

Available Resources

  1. netField.devices.remote.create(deviceId, params, [callback])

  2. netField.devices.remote.credentials(deviceId, [callback])

  3. netField.devices.remote.status(deviceId, [callback])

Resource Usage

create

Create remote device
/**
 * @param {string} deviceId
 * @param {any} params
 * @param {function} callback optional
*/
netField.devices.remote.create(deviceId, params, [callback])

credentials

Get remote device credentials
/**
 * @param {string} deviceId
 * @param {function} callback optional
*/
netField.devices.remote.credentials(deviceId, [callback])

status

Get remote device status
/**
 * @param {string} deviceId
 * @param {function} callback optional
*/
netField.devices.remote.status(deviceId, [callback])