Mikrotik Java API by Janisk

Hello. I’m writing my own Android RouterOS client based on Java API by Janisk and have a trouble.

When I sending this to RouterOS

/ip/dhcp-server/lease/print
    =.proplist=.id,disabled,dynamic,address,mac-address,client-id,server,active-address,active-mac-address,active-host-name,expires-after,status,comment

then my program crashes, because

in.read();

in ReadCommand.java returns -1 and empty string is pushed into the queue.

Janisk, can you help me with this problem? Thanks and sorry for bad english.

As suggested on the API client’s page itself… I’d advise you to retry that using this Java API client.

Thanks for reply. I will try it.