IRREMOTE decode problem

Im trying to build a circuit to replace my fan remote controller

Im using the irremote library (http://www.righto.com/2009/08/multi-protocol-infrared-remote-library.html) and can decode the fan controller and I know how to write the code to send as well.

However the fan is not reading it. I don't know if there's a specific format (NEC, SONY, RC5 etc) or how many times it needs to be sent. The decoder doesn't give too much information about the signal except the HEX (A32AB931)

SOLVED. I found it its the example sketch called IRremote->IRrecord