Exemple #1
0
        public async Task <ArduinoPacket> SendPacketAsync(ArduinoPacket packet)
        {
            var reqeustFrame  = packetConverter.ConvertPacketToFrame(packet);
            var responseFrame = await SendByteAsync(reqeustFrame);;

            return(packetConverter.ConvertPayloadToPacket(responseFrame));
        }
Exemple #2
0
        public async Task <byte[]> SendPacketWithRawResponseAsync(ArduinoPacket packet)
        {
            var reqeustFrame = packetConverter.ConvertPacketToFrame(packet);

            return(await SendByteAsync(reqeustFrame));
        }