I need to send 0xFE (hex value) to a device connected through TCP. I tried following code and observed data on Packet Sender which shows value in ASCII column as 0xFE and hex value as "30 78 66 65". I have tried binascii.hexlify and a lot other strategies but none seem to work as I ain't getting "FE" hex value.
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('192.168.10.10',59354))
s.sendall(hex(int('FE',16)).encode())
s.close()