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.7.1
- Please 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.
Please check the LICENSE file for the details.