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 datapoint is copied several times, then the information is read only once. The buffer is reloaded, if you copy another source datapoint.
Exampl e
Creating two datapoints - test3Copy and test2Copy. Change the source datapoint ExampleDP_Arg1 during the delay (20 seconds). The datapoint 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
Availability
UI, CTRL