t_remote_ac_status ac_status =
{
.ac_power = AC_POWER_ON,
.ac_temp = AC_TEMP_24,
.ac_mode = AC_MODE_COOL,
.ac_wind_dir = AC_SWING_ON,
.ac_wind_speed = AC_WIND_SPEED_AUTO,
.change_wind_dir = TRUE,
};
uint8_t* buffer = binary_buffer;
uint16_t buffer_length = 700;
uint16_t decoded_data[1024];
uint16_t decoded_length = 0;
ir_binary_open(1, 0, buffer, buffer_length);
decoded_length = ir_decode(KEY_AC_POWER, decoded_data, &ac_status);
ir_binary_close();
ir_driver.emit(decoded_data, decoded_length);