encode method

Implementation

String encode(MetricModbusDataTypeEnum data) => data.value;