Function mapMonitoringParameterValuesStatusMessageToDeviceParameters

  • Creates an operator that transforms Motion Master monitoring status messages into a list of resolved DeviceParameter objects. For each incoming message, parameter values are extracted, device parameter metadata is resolved using the provided request client, and both pieces of information are merged into a final typed representation.

    More specifically:

    • Extracts raw parameter values from a monitoring status message.
    • Determines the associated device address.
    • Fetches a parameter info map for that device via request.resolveDeviceParameterInfoMap(...).
    • Combines resolved metadata (e.g., name, unit, scaling) with current parameter values.
    • Produces a DeviceParameter[] representing the current state.

    If the incoming message does not include parameter values, an empty array is emitted.

    Returns

    Operator that maps a stream of IMotionMasterMessage into parameter arrays.

    Example

    source$.pipe(
    mapMonitoringParameterValuesStatusMessageToDeviceParameters(request)
    ).subscribe(parameters => {
    console.log('Resolved device parameters:', parameters);
    });

    Remarks

    • The operator handles missing or incomplete monitoring payloads gracefully.
    • The returned parameters contain both identification (index/subindex) and resolved metadata.

    Parameters

    Returns UnaryFunction<Observable<IMotionMasterMessage>, Observable<DeviceParameter[]>>

Generated using TypeDoc