Bytes of len are sent most significant first (network order).Scheme allows encoding of length up to 0x7FFFFFFFFF, only four byte length is supported.End of sentence is terminated by zero length word Each word is encoded as length, followed by that many bytes of content.Length of the word is encoded as follows: Length of the word should be given as count of bytes that are going to be sent. Each word has to be encoded in certain way - length of the word followed by word content. When router receives full sentence (command word, no or more attribute words and zero length word) it is evaluated and executed, then reply is formed and returned. Each sentence sent to router using API should contain command as a first word followed by words in no particular order, end of sentence is marked by zero length word. Communication happen by sending sentences to the router and receiving replies to sent sentences. Word is part of sentence encoded in certain way - encoded length and data. Sentence is sequence of words terminated by zero length word. Corresponding service name is api ProtocolĬommunication with router is done by sending sentences to the router and receiving one or more sentences in return. More on service management see in corresponding manual section. To use API RouterOS version 3.x or newer is required.īy default API uses port # 8728 and service is enabled. It can be used to create translated or custom configuration tools to aid ease of use running and managing routers with RouterOS. API closely follows syntax from command line interface (CLI). Application Programmable Interface (API) allows users to create custom software solutions to communicate with RouterOS to gather information, adjust configuration and manage router.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |