I've done the same from a raspberry pi to a receipt printer, just piping to lp0