Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tuyenle92 authored Oct 31, 2019
1 parent 7a87ae1 commit ac27ec1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,15 @@ List<AromaShooter> connectedDevices = usbController.getConnectedDevices();
// For example, the following codes will diffuse aroma at cartridge 2 and 5 for 3 seconds.
usbController.diffuseAll(3000, true, 2, 5);
```

* Diffuse scents method for AS2 (AromaShooter 2) devices only
```java
Port port1 = new Port(1, 100);
Port port2 = new Port(2, 50);

usbController.diffuseAll(3000, 0, 100, [port1, port2]);
```

### Stop
Stop all ports of current connected devices if they are diffusing
```java
Expand Down

0 comments on commit ac27ec1

Please sign in to comment.