def METHOD_NAME(self, port_idx, ledMode):
    with open(self.f_led.format("port{}".format(port_idx)), 'w') as led_file:
        led_file.write(str(ledMode))
    (port, ctlid) = (self.led_mapping[port_idx][0], self.led_mapping[port_idx][1])
    data = struct.pack('=HHHBBH', 0, 7, 4, ctlid, ledMode, port)
    self.udpClient.sendto(data, ('localhost', 8101))