SDG command to get printed tag count while printing not working.

Hello, I am using the java sdk to connect and send zpl commands to a R110Xi4 printer.

To get the printed tag count I used :

SGD.GET("odometer.rfid.valid_resettable", connection, 1000, 1000).toInt()

It works fine when I first connect to the printer, but after I send a zpl print job or while the printer is printing the functions returns an empty string or a "?".

To get the tag count again, I have to close the connection to the printer and reconnect.

Is there a solution for this problem?

I connect to the printer with the TcpConnection class. TcpConnection (Zebra API (build v2.11.2800))

Many thanks for your help in advance.

Best regards