Skip to content

Commit

Permalink
Зональная уборка для Xiaomi Mi Robot Vacuum
Browse files Browse the repository at this point in the history
  • Loading branch information
skysilver-lab committed Jun 1, 2018
1 parent a98bf54 commit 67145d9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions devices/mirobot.class.php
Expand Up @@ -220,6 +220,17 @@ public function findMe($msg_id = 1) {

}

/*
Зональная уборка
*/

public function zoned_clean(int $x1_coord, int $y1_coord, int $x2_coord, int $y2_coord, int $count, $msg_id = 1) {

$result = $this->dev->msgSendRcv('app_zoned_clean', "[[$x1_coord,$y1_coord,$x2_coord,$y2_coord,$count]]", $msg_id);
return $this->verify($result);

}

/*
Проверка ответа
*/
Expand Down

0 comments on commit 67145d9

Please sign in to comment.