How to send IR code from Perl script to ESP8266 using Socket One of the customers asked me how to send a IR code from his home automation system FHEM https://fhem.de (Perl Server) to an esp8266 + IRDevkit. This example demostrates how to integrate with FHEM https://irdevkit.com