Comments (2)
I suspect that there is an incompatibility between the RouterOS command line and the API. The error you are receiving is being generated by the Mikrotik device and the Java API generates an exception for it. I think the API does not support nameless numeric parameters. I'll need to re-read the official API spec and possibly post on the forums to be 100% sure about that however.
But there is good news. The following code, where you specify the delay-time parameter explicitly, does work:
api.execute("/delay delay-time=200ms")
I hope this solves your problem.
Gideon
from mikrotik-java.
Thank you for your response.
Workaround api.execute("/delay delay-time=200ms")
works fine for me.
from mikrotik-java.
Related Issues (20)
- Problem to send profile exchange command HOT 1
- Failure on login with empty pass HOT 1
- Failed to login if password contains = char
- Login fails if the password contains ! (Token.PIPE) HOT 2
- Connecting with API_SSL do not work with RouterOS Stable 6.45.5 version HOT 1
- get users by .id value not work
- Add support for nested query expressions HOT 9
- Failed to login if password contain ! HOT 1
- How to implement Pull Request #67 in Android HOT 2
- unknwon parameter when adding user hotspot profile with on-login script HOT 1
- issue with reading single file from mikrotik router HOT 1
- query with ~ symbol HOT 1
- Get result from /export compact
- [Request] Add Tilde in Scanner.java HOT 1
- New login method of Router OS HOT 1
- Thanks gideon HOT 1
- Mikrotik HOT 1
- Can't connect via ssl
- FOR MIKROTIK
- create-and-activate-profile HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mikrotik-java.