qr code receipt from thermal printer via ip.

I want to get qr code receipt from thermal printer via ip, how can i do?