I am trying to implement the feature by myself. But before starting coding on the project I'd like to understand completely how that device works. Firstly, I've written a Java code to read the data sent by the server using Sockets. That approach is not working fine.
public void printRawValue(InputStream inputStream) throws IOException {
int byteValue;
while ((byteValue = inputStream.read()) != -1) {
System.out.printf("%02X ", byteValue); // Format as hex string with 2 digits
}
System.out.println(); // Add a newline after printing all bytes
}
That output doesn't like what I've seen on the Reporting Guide documentation. Yes, the message should be a Report.
Also, I don't know whether the Data is on Zip or String format. The documentation says:
(Sorry for the print)
Clearly, the result I've seen isn't related to the documentation. What I'd like to ask is either help to fix my code so that I could work to onboard the device or someone else onboard that device.
I am trying to implement the feature by myself. But before starting coding on the project I'd like to understand completely how that device works. Firstly, I've written a Java code to read the data sent by the server using Sockets. That approach is not working fine.
The output from the above code is:
That output doesn't like what I've seen on the Reporting Guide documentation. Yes, the message should be a Report. Also, I don't know whether the Data is on Zip or String format. The documentation says: (Sorry for the print)
Clearly, the result I've seen isn't related to the documentation. What I'd like to ask is either help to fix my code so that I could work to onboard the device or someone else onboard that device.
Please, find the documentation I am seeing attached: Universal_Reporting_Guide_1.102(LATAM)[982].pdf