Community discussions

MikroTik App
 
metori
just joined
Topic Author
Posts: 6
Joined: Fri Feb 13, 2015 5:13 pm

Mikrotik Java API by Janisk

Fri Feb 13, 2015 5:27 pm

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.
 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2400
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: Mikrotik Java API by Janisk

Fri Feb 13, 2015 6:42 pm

As suggested on the API client's page itself... I'd advise you to retry that using this Java API client.
 
metori
just joined
Topic Author
Posts: 6
Joined: Fri Feb 13, 2015 5:13 pm

Re: Mikrotik Java API by Janisk

Sat Feb 14, 2015 1:52 pm

Thanks for reply. I will try it.