Skip to main content
Home
for DLMS smart meters

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
  • Gurux Club
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Node
  3. Convert read data to String or JSON format

Convert read data to String or JSON format

By mightyChamp, 19 September, 2023
Forums
Gurux DLMS for Java

Hello,

I need to read specific Obis codes and convert their values to an JSON Object.
Server Sends Obis code and Object type like Data, Register or Profile generic.

I am reading like this:
GXDLMSRegister d = new GXDLMSRegister(obStruct.obis_code);
reader.read(d,3);
reader.read(d,2);

GXDLMSProfileGeneric d = new GXDLMSProfileGeneric(obStruct.obis_code);
reader.read(d,3);
reader.read(d,4);
reader.read(d,5);
reader.read(d,6);
reader.read(d,7);
reader.read(d,8);

Then Now Convert Obtain value to String or JSON.

Please suggest best way to convert those values to JSON or String.

Thank You

  • Log in or register to post comments
  • Create new account
  • Reset your password

Hire Us!

Latest Releases

Fri, 09/22/2023 - 19:50
gurux.dlms.c 20230922.1
Mon, 09/18/2023 - 13:51
Gurux.DLMS.AMI4 4.0.2309.1801
Fri, 09/15/2023 - 12:00
gurux.dlms.c 20230915.1
Tue, 09/12/2023 - 11:10
Gurux.DLMS.AMI4 4.0.2309.1201
Fri, 09/08/2023 - 10:59
gurux.dlms.c 20230908.1

Open bugs

gurux.dlms.c
3
gurux.dlms.cpp
3
gurux.dlms.delphi
1

New forum topics

  • problem with date and time in ION
  • Permament rejected
  • DLMS- GMAC: SNRM, AARQ, AARE is responding but not able to decrypt the Authentication key received from the meter
  • List complete policy security configuration basic (configuration security))
  • Save Association view in database
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin