AnsweredAssumed Answered

Hi Filemaker community. 

Question asked by user2147414 on Mar 11, 2018
Latest reply on Mar 13, 2018 by user2147414

Hi Filemaker community.

 

This is my first question here, so bare with me

 

I am working with a thermal printer for a POS gig. It accepts hexadecimal codes for various things, like opening the cash drawer, cutting the receipt and formatting.

The printer is connected to wifi through a cloud service.

Working with the printer inside PHP, I am able to send a string containing "\n" for a new line and "\x1D\x56" to cut the receipt. PHP will automatically escape "\" and send the corresponding values to the printer.

 

Now I am trying to push the codes to the printer through the web API with "insert from URL" but alas: the printer just prints the codes as text.

 

I was looking into using Let to do the conversion, but have had no luck so far. Apparently, "\" works as escape character in FM as well, so Let won't let me use it in an expression.

Outcomes