Program the microcontroller over wifi

How to program the atmega168PA via wifi ?

You wont be able to re-program the ATmega of Bolt.

Why ? Then what are the PROG pins for ? doesn’t it have a bootloader?

The program pins are used by us to load the firmware. Any attempt to re-program those pins will erase the access to services like libdiscovery.

What if I read and save the firmware(.hex) using avrdude and then reprogram using a custom firmware . So if any problem occurs I have a back up