The Windows version of AromaShooterController SDK which is used to communicate with Aroma Shooter devices.
- Aroma Shooter 1 USB Type
- Aroma Shooter 2 (via USB only)
- Windows version: 10+.
- .NET Framework: 4.6+.
- lease install device driver.
- Clone this repository or download the .zip file.
- Get library binary files (.dll) at
libs
folder. - Add these .dll files into your project as References.
You might want to try the sample app by using Visual Studio.
AromaShooterController aromaShooterController = AromaShooterController.SharedInstance;
aromaShooterController.Setup();
aromaShooterController.Diffuse(int durrationMillisecs, int[] ports, bool booster);
*@param durationMillisecs diffusing time (ms).
*@param ports array of cartridge number to diffuse, value: 1~6.
*@param booster true = use booster, false = not use booster.
For example, the following code will diffuse cartridge 1, 2, and 3 for 3 seconds with booster.
aromaShooterController.Diffuse(3000, new int[]{1, 2, 3}, true);
aromaShooterController.Diffuse(int durationMillisecs, int[] ports, bool booster, string shooterName);
For example, the following code will diffuse cartridge 1, 2, and 3 for 3 seconds at Aroma Shooter with serial number "ASN1UA0001".
aromaShooterController.Diffuse(3000, new int[] { 1, 2, 3}, true, "ASN1UA0001");
aromaShooterController.Stop();
aromaShooterController.Stop(string shooterName);
List<string> connectedAromaShooters = ASController.getConnectedDevices();
ASController.DiffuseAll(int durationMillisecs, List<AromaPort> ports, int boosterIntensity, int fanIntensity);
AromaPort class has two members: number and intensity, in which number is the port to diffuse, intensity is the strength of diffusing (0~100).
ASController.Diffuse(int durationMillisecs, List<AromaPort> ports, int boosterIntensity, int fanIntensity, string shooterName);
ASController.Stop(int[] ports, bool stopBooster, bool stopFan);
When stopBooster is true, booster is stopped. When stopFan is true the attached fan is stopped.
ASController.Stop(string shooterName, int[] ports, bool stopBooster, bool stopFan);
If you get any issues or require any new features, please create a new issue.
The Apache License (Apache)
Copyright (c) 2017 Aromajoin Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.