Page 1 of 1

Mikrotik Java API by Janisk

Posted: Fri Feb 13, 2015 5:27 pm
by metori
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.

Re: Mikrotik Java API by Janisk

Posted: Fri Feb 13, 2015 6:42 pm
by boen_robot
As suggested on the API client's page itself... I'd advise you to retry that using this Java API client.

Re: Mikrotik Java API by Janisk

Posted: Sat Feb 14, 2015 1:52 pm
by metori
Thanks for reply. I will try it.