/// <summary> /// Send values to the data provider /// </summary> /// <param name="data"> /// Data to be send. Always null after return. Data buffer must be returned to the pool. /// </param> /// <param name="retries">Number of retries to wrtie data.</param> /// <returns>Result of the operation.</returns> AL_ReadData_Result IApplicationLayerMaster.WriteData(ref IWriteValue data, byte retries) { ((NULL_message)data).WriteToDB(); data.ReturnEmptyEnvelope(); myStatistic.IncStTxFrameCounter(); myStatistic.IncStRxFrameCounter(); myStatistic.TxDataBlock(true); return(AL_ReadData_Result.ALRes_Success); }