-
Notifications
You must be signed in to change notification settings - Fork 12
Usage
SG-O edited this page Jun 7, 2018
·
1 revision
Make sure that you have added the library to your dependencies.
Import the required classes:
import de.sg_o.app.miio.base.*;
import de.sg_o.app.miio.vacuum.*;Create a Token object with your devices token:
Token tk = new Token("00112233445566778899AABBCCDDEEFF", 16);Create a Vacuum object with your devices local IP-Address:
Vacuum vac = new Vacuum(InetAddress.getByName("192.168.0.1"), tk, 0, 2);Now execute any available command on the vaccum. For example starting the cleanup:
vac.start();Stopping the cleanup:
vac.stop();Send the vacuum to its basestation:
vac.home();