Smart ACs through IR

Hi. I am working on an IR Hotspot project which is basically about controlling ACs through web.
I am getting the codes from the remote. Although the values change when I press the same button again. Will that be a problem?

Secondly and most importantly, using this attached code for transmission does nothing at all. Is there any other code that may solve this problem. Need urgent advices. TIA.

IRtransmit.txt (2.76 KB)