0

I have installed Energy meter at a industry. I am getting data per half an hour from server which a console application. I would like to convert this meter data into json format. MODBUS protocol is used to read the MODBUS data.

serverResponse = modbusClient.ReadHoldingRegisters(int.Parse(dr["RegisterAddress"].ToString()) - 1, int.Parse(dr["RegLength"].ToString()));

This is a part of my code. I want to convert this ToString() into json format.

This is .NET application.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.