jkristell / infrared

Infrared remote control library for embedded Rust
Apache License 2.0
56 stars 10 forks source link

Sender Support for Protocols than Don't Have ProtocolEncoder #110

Open mahdi1-kh opened 7 months ago

mahdi1-kh commented 7 months ago

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> <infrared::protocol::Rc6 as ProtocolEncoder>

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