@felmue It looks like I need the binary version of getProtocolString. It seems the following is needed for sending an IRData (the mirror of what was learned from receiving.)
/**
* Interprets and sends a IRData structure.
* @param aIRSendData The values of protocol, address, command and repeat flag are taken for sending.
* @param aNumberOfRepeats Number of repeats to send after the initial data if data is no repeat.
* @return 1 if data sent, 0 if no data sent (i.e. for BANG_OLUFSEN, which is currently not supported here)
*/
size_t IRsend::write(IRData *aIRSendData, int_fast8_t aNumberOfRepeats)
And I need a way to get the IrReceiver to provide the IRData information. So It seems this is in the decodedIRData from the IrReceiver.decode call.
/**
* Main class for receiving IR signals
*/
class IRrecv {
public:
IRData decodedIRData; // Decoded IR data for the application
}
I assume I save these values with the associated functions (volume up, change channel, etc). I see that a lot of those functions are defined for various known operations, but for now I will learn from the IR receiver.
Thanks for the help.