pylon:
OK, then change the declaration:uint8_t buffer[BUFFER_SIZE];or change the write line to
Thermal.write((const uint8_t *)buffer, pos);Both modifications should work. But you cannot remove the pos parameter!
Thank you very much Pylon. I was trying to cast uint8 onto pos instead of buffer ^^
After the change the problems persisted until realizing that i've been sending the date w/o line ending. I did a test with Java serial monitor and saw that when i send the data with \n the printer would print everything perfectly and quickly.
So i've changed the line on python:
ser.write(message)
to:
ser.write(message+"\n")
Now everything's working as intended. Thanks again for your help and don't forget to drop me a line:
http://www.aerovisual.net/experiments/remoteprint/submit.php