I have a POS terminal with a built-in printer and am having some issues connecting and printing consistently.
Firstly, as an FYI, as I posted in another thread, I have found out that the MAC address can be used to connect to the device (@matt_conroy can you get Thunkable to update the documentation to include this please).
My app accepts information from the user, retrieves data from a database and then creates an output which I want to print.
If I run these blocks in a screen on its own, I can get the printer to connect and print -
However, if I call this screen from another, I either get an error that the device is not connected or that the “Can’t write the characteristic provided.”
Hi. This made no difference. Going directly to the connect and print screen works but going through the 4 screens before give me the Can’t write error.
If you have the connection occur on the first screen of the app it works,
But.
If you add a new screen as the first screen that only and immediately redirects you to the screen that connects, the connection fails? Or the write action only fails?
Screen1: One second delay and then navigate to Screen2
Screen2: Click event to connect to device by device ID. 2nd click event to go to Screen3.
Screen3: Transmit string to device.