UNPKG

aes70

Version:

A controller library for the AES70 protocol.

62 lines (59 loc) 1.58 kB
import { OcaBoolean } from '../../OCP1/OcaBoolean.js'; import { make_control_class } from '../make_control_class.js'; import { OcaActuator } from './OcaActuator.js'; /** * Function that shall turn on some kind of human-detectable indicator for * purposes of device identification during network setup. Physical form of * indicator is not specified by AES70, so it could be anything, e.g. * * - LED * * - Foghorn * * - Smoke emitter * * - Little waving robot hand wearing white glove * * - Jack-in-the-box popout * * - et cetera * * * @extends OcaActuator * @class OcaIdentificationActuator */ export const OcaIdentificationActuator = make_control_class( 'OcaIdentificationActuator', 4, '\u0001\u0001\u0001\u0015', 3, OcaActuator, [ ['GetActive', 4, 1, [], [OcaBoolean]], ['SetActive', 4, 2, [OcaBoolean], []], ], [['Active', [OcaBoolean], 4, 1, false, false, null]], [] ); /** * Gets the value of the **Active** property. * * @method OcaIdentificationActuator#GetActive * @returns {Promise<boolean>} * A promise which resolves to a single value of type ``boolean``. */ /** * Sets the value of the **Active** property. * * @method OcaIdentificationActuator#SetActive * @param {boolean} active * * @returns {Promise<void>} */ /** * This event is emitted when the property ``Active`` changes in the remote object. * The property ``Active`` is described in the AES70 standard as follows. * True if and only if indicator is active. * * @member {PropertyEvent<boolean>} OcaIdentificationActuator#OnActiveChanged */