Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support cut functionality EPSON TM-T88IV on multiple and different system #240

Closed
priyankaPHP opened this issue Dec 6, 2016 · 1 comment

Comments

@priyankaPHP
Copy link

priyankaPHP commented Dec 6, 2016

Hi Mike ,

Your library is awesome it works perfectly on both windows and linux through FilePrintConnector and WindowsPrintConnector connectivity.
But my actual requirement is that I am required to make connectivity to any numbers of computer at different platforms(like Linux , Android devices & windows) which means through WindowsPrintConnector I am able to make connection to only one particular system at a time{ $connector = new Mike42_Escpos_PrintConnectors_WindowsPrintConnector("smb://username:password@IP/workgroup/share printername"); }
Is there exist a way to connect to multiple system at a time and my printer is USB port EPSON TM-T88IV and hosting of code would be on LINUX i.e. AWS.

Please suggest me on this since I am stuck on this from very long time.

@mike42
Copy link
Owner

mike42 commented Dec 10, 2016

If I understand correctly, you want to easily connect to different types of printers based on something like a connection string, rather than a hard-coded implementation.

I could write some new code in PrintConnector to accept a URI, then return different implementations based on the scheme used. Would your usage be easier if this sort of usage was possible?

$foo = new PrintConnector::get("file:///dev/usb/lp0"); // FilePrintConnector
$foo = new PrintConnector::get("tcp://x.y.z.w:9100/"); // NetworkPrintConnector
$foo = new PrintConnector::get("ipp://foobar/"); // CupsPrintConnector
$foo = new PrintConnector::get("smb://windows/printer"); // creates a WindowsPrintConnector

It not clear from your question how the AWS server is going to be able to see the printers. If you haven't planned this out, then you may find some relevant information in the FAQ entry: Can I print from my server on the Internet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants