question

toomanytacos avatar image
toomanytacos asked sydneyy answered

Problem printing to clover device (web app)

I am using an angular web app utilizing the CloverConnector library to send a print command to the Clover Mini to act as an order printer. No errors seem to be generated, but the device will not print the order.I am already connected to the device via web through the Cloud Pay Display app when the command is sent, and i can process CC between the web app and the device without problem. Any advice would be greatly helpful.


Here is what the function looks like.


setPrint(text: Array<string>, printDeviceId: string, printRequestId: string) {

var printRequest: clover.remotepay.PrintRequest = new clover.remotepay.PrintRequest();
printRequest.setText(text);
printRequest.setPrintDeviceId(printDeviceId);
printRequest.setRequestId(printRequestId);

this.cloverConnector.print(printRequest);
}

Print
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated edited

You haven't given us much to go on. Are you getting an error in the browser? Have you checked the printers app on the device (looking for errors etc.)? Is this happening on a devkit? Can you tail the device logs, you may be able to see if the request is making it to the device. You can also check the websocket tab in your browser's debug to see if you are getting an ack for the print request.

2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

toomanytacos avatar image toomanytacos commented ·

Sorry for the delayed response,


No no errors in console, or on the printers app. The unit is a devkit. Thanks to your response, i was able to view the system logs for the Clover Mini, and I don't see any logs showing it received the print command. I'm at a loss as to why it's not printing, but it seems to be a code issue, and not an issue of the device.

0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ toomanytacos commented ·

What version of the SDK are you using? What are you setting printDeviceId to? If you are just trying to use the device printer you don't need to set that.

0 Likes 0 ·
sydneyy avatar image
sydneyy answered

If you're experiencing issues with sending print commands to the Clover Mini using the CloverConnector library in your Angular web app, here are some steps to troubleshoot:

  1. Check Connection: Ensure that the Clover Mini is properly connected and recognized by your application. You can verify this in the Clover Cloud Pay Display app.

  2. Review Permissions: Ensure that your app has the necessary permissions to communicate with the Clover Mini for printing.

  3. Test with Sample Code: Try using a simple print command from the Clover documentation to see if it prints correctly. This can help identify if the issue is with your command or the connection.

  4. Debugging: Add logging to your print command function to see if the command is being sent as expected. Check if the data format matches what the Clover Mini expects.

  5. Update Library: Ensure that you are using the latest version of the CloverConnector library. Sometimes, updates fix bugs or improve functionality.

  6. Check Printer Status: Verify that the Clover Mini is set up as a printer and that there are no issues with its status (e.g., paper jams, low ink).

  7. Contact Support: If you continue to have problems, consider reaching out to Clover support for further assistance.

For your business related to Print Pack and Ship Services in Reedley with JH Tackett, ensure you highlight your expertise in handling printing tasks efficiently, which can also include troubleshooting and optimizing print commands for clients using Clover devices.Continue

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community