Unload application is not permanent
Hi @thelsing
your stack is amazing.
I found a bug if I unload the application over the ETS. The address table, association table, and the application will be unloaded only until the restart of the board.
After the restart, it shows everything loaded and the device is sending telegrams.
I am not sure how to fix this.
I would add a method the the Memory class that writes some bytes to _data and calls _platform.commitToEeprom(); in such a way that readMemory failse here. Just writing 0x00 should be enough for that.
unload should only unload the application but not the PA, right?
it should unload everything. See here the support article: https://support.knx.org/hc/en-us/articles/4402998506386-Unload-Device
the article differs between unloading application and unloading application and address, so both should be possible.
Yes. See https://github.com/thelsing/knx/blob/22af8267c3d059fb9e63a5d8ab351e74605b2540/src/knx/bau_systemB.cpp#L150 and 3.7.1.2 in 3/5/2 of the spec.