Send/Receive hex byte over Uart
Posted: Sat Aug 19, 2023 6:59 pm
I'm using esp32 dev module to send hex byte to MCP39F511 power ic. This ic can response over uart if received valid hex byte, example if i send "0xA5 0x04 0x53 0xFC" from esp32 to these ic then ic will response hex byte=0x06(Acknowledge). But i am having difficulty how to send data as hex byte and how to get response from power ic. I used the source code of espidf but still only sending ascii and not hex bytes. I'm using espidf. Thank you and hope every help me please!