A method of replacing one of a light module and a driver module of a light unit, the light module being configured for emitting light when driven by an electrical driving signal; and the driver module being connected to the light module and configured for driving the light module by providing the electrical driving signal to the light module, wherein the light module and the driver module each comprise a data storage memory configured for storing data, wherein a visual light communication, VLC, code has been stored in one of the data storage memory of the light module and the data storage memory of the driver module, wherein the driver module is configured to drive the light module so as to optically emit, by means of a modulation of a light output of the light module, information based on the VLC code as stored in the one of the light module and the driver module, the method being characterized by: a) reading the VLC code from the one of the data storage memory of the light module and the data storage memory of the driver module; b) transferring the VLC code via a connection between the light module and the driver module; c) storing the transferred VLC code in the other one of the light module and the driver module; d) electing one of the light module and the driver module for replacement; e) replacing the one of the light module and the driver module elected for replacement; and f) transferring the VLC code from the other one of the light module and the driver module to the replaced one of the light module and the driver module and g) storing the transferred VLC code in the data storage memory of the replaced one of the light module and the driver module. the light module being configured for emitting light when driven by an electrical driving signal; and the driver module being connected to the light module and configured for driving the light module by providing the electrical driving signal to the light module, wherein the light module and the driver module each comprise a data storage memory configured for storing data, wherein a visual light communication, VLC, code has been stored in one of the data storage memory of the light module and the data storage memory of the driver module, wherein the driver module is configured to drive the light module so as to optically emit, by means of a modulation of a light output of the light module, information based on the VLC code as stored in the one of the light module and the driver module, the method being characterized by: a) reading the VLC code from the one of the data storage memory of the light module and the data storage memory of the driver module; b) transferring the VLC code via a connection between the light module and the driver module; c) storing the transferred VLC code in the other one of the light module and the driver module; d) electing one of the light module and the driver module for replacement; e) replacing the one of the light module and the driver module elected for replacement; and f) transferring the VLC code from the other one of the light module and the driver module to the replaced one of the light module and the driver module and g) storing the transferred VLC code in the data storage memory of the replaced one of the light module and the driver module. a) reading the VLC code from the one of the data storage memory of the light module and the data storage memory of the driver module; b) transferring the VLC code via a connection between the light module and the driver module; c) storing the transferred VLC code in the other one of the light module and the driver module; d) electing one of the light module and the driver module for replacement; e) replacing the one of the light module and the driver module elected for replacement; and f) transferring the VLC code from the other one of the light module and the driver module to the replaced one of the light module and the driver module and g) storing the transferred VLC code in the data storage memory of the replaced one of the light module and the driver module.