infrared icon indicating copy to clipboard operation
infrared copied to clipboard

Sender Support for Protocols than Don't Have ProtocolEncoder

Open mahdi1-kh opened this issue 11 months ago • 0 comments

Hi and thank you for this awesome crate.

I have written a code that receives IR signals using MultiReceiver's event_iter and then sends the same received commands using transmitter.load :

but this code only works for the nec, rc6, and rc5 protocols since they have their ProtocolEncoder, but for other protocols like Denon I get the following error:

the trait bound infrared::protocol::Denon: ProtocolEncoder<20000> is not satisfied --> src\main.rs:152:43 | <infrared::protocol::Rc5 as ProtocolEncoder<FREQ>> <infrared::protocol::Rc6 as ProtocolEncoder<F>>

Am I doing something wrong or is sending Denon commands not supported at the moment?

mahdi1-kh avatar Mar 16 '24 14:03 mahdi1-kh