public async Task <ArduinoPacket> SendPacketAsync(ArduinoPacket packet) { var reqeustFrame = packetConverter.ConvertPacketToFrame(packet); var responseFrame = await SendByteAsync(reqeustFrame);; return(packetConverter.ConvertPayloadToPacket(responseFrame)); }
public async Task <byte[]> SendPacketWithRawResponseAsync(ArduinoPacket packet) { var reqeustFrame = packetConverter.ConvertPacketToFrame(packet); return(await SendByteAsync(reqeustFrame)); }