All Downloads are FREE. Search and download functionalities are using the official Maven repository.

examples.Example1 Maven / Gradle / Ivy

package examples;

import me.legrange.mikrotik.MikrotikApiException;

/**
 * Example 1: A very simple command: Reboot the remote router
 * @author gideon
 */
public class Example1 extends Example {
    
        public static void main(String...args) throws Exception {
            Example1 ex = new Example1();
            ex.connect();
            ex.test();
            ex.disconnect();
        }
        
        private void test() throws MikrotikApiException {
            con.execute("/system/reboot");
        }

   
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy