Use a USB Type-C data cable to connect the Mega to your computer.

Open LightBurn and establish a connection with your Mega machine.

In the LightBurn console, input the following command:
BBB,WIFI,SET,ssid,passwd\n
ssid with your Wi-Fi network name.passwd with your Wi-Fi password.
If the console returns OK, the Wi-Fi setup succeeded.