dpCopyConfigMergeBufferClear()

Clears the buffer copies prior to a new dpCopyConfigMerge().

Synopsis

void dpCopyConfigMergeBufferClear();

Parameters

Parameter Meaning
None -

Return Value

None

Description

The function clears the buffer of dpCopyConfigMerge(). If the source data point is copied several times, then the information is read only once. The buffer is reloaded, if you copy another source data point.

Exampl e

Creating two data points - test3Copy and test2Copy. Change the source data point ExampleDP_Arg1 during the delay (20 seconds). The data point test2Copy accept the new config only after clearing the buffer with dpCopyConfigMergeBufferClear().

main()
{
  dyn_string copyConfigs;
  mapping forceAttributes;
  copyConfigs = makeDynString("_alert_class", "_alert_hdl");
  dpCopyConfigMerge("ExampleDP_Arg1","test3Copy", forceAttributes, 
  copyConfigs);
  delay(20); //change config
  dpCopyConfigMergeBufferClear() //clear buffer
  dpCopyConfigMerge("ExampleDP_Arg1","test2Copy", forceAttributes, 
  copyConfigs);
}

Assignment

Data point function

Availability

UI, CTRL