-
Notifications
You must be signed in to change notification settings - Fork 32
cash drawer open command not working #27
Comments
any discovery of how to make it work? |
@dannyzar are you using as SUNMI device for this? |
Yes, I'm using SUNMI T2 mini. This device have a port to connect a cashdrawer and I'm trying to make it work. |
@dannyzar Do you have a cordova plugin for this SUNMI T2 device? |
@dannyzar /**
* JIUI T1 print service
* AIDL Version: 2.1
*/
package woyou.aidlservice.jiuiv5;
import woyou.aidlservice.jiuiv5.ICallback;
import android.graphics.Bitmap;
import woyou.aidlservice.jiuiv5.ITax;
interface IWoyouService {
/**
* Open the cash drawer
*/
void openDrawer(in ICallback callback);
} Maybe you can create a plugin for it and use that method |
@tmalbonph Yes, I have the .aidl files of this device. I'm trying to make the plugin work using this one's as base and just adding these new functions (openDrawer) to the ./src/android/com/sunmi/innerprinter/Printer.java and ./www/innerprinter.js files. Any other thing you know I should be missing? |
@dannyzar Most of the plugin or driver provided by sunmi on there webpage were outdated. If you're using a react maybe you can view issue on openDrawer() here januslo/react-native-sunmi-inner-printer#23 |
Yes its working
…On Tue, Sep 29, 2020 at 12:41 PM Teddy Albon ***@***.***> wrote:
@dannyzar <https://github.com/dannyzar> Most of the plugin or driver
provided by sunmi on there webpage were outdated. If you're using a react
maybe you can view issue on openDrawer() here
januslo/react-native-sunmi-inner-printer#23
<januslo/react-native-sunmi-inner-printer#23>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APBKTGWNXUXE2OWXPCDNVJTSIGCBRANCNFSM4OMI2S4A>
.
--
Thanks & Regards
D.Arunkumar
phno:8008000600
|
@dgarunkumar If it is working, please close this issue as the original owner @labibramadhan no longer maintain this org @labibramadhan/cordova-sunmi-inner-printer . |
@tmalbonph it's finally working for me, the problem was the functions change their return value in each .aidl file. Thanks for the support. |
@dannyzar for me it is not working after adding files |
No description provided.
The text was updated successfully, but these errors were encountered: