I have a device with two variants: one is E-series based and the other is Electron based.
The application is the same except for a few hardware & software differences. For e.g.: In my E-series design, I am storing the device keys in an SPI flash chip while it is stored in the EEPROM in the case of an Electron.
My Electron variant is already out in the field and my E-series variant is in the process of being rolled out.
Is there a way to identify the current hardware is an Electron or an E-series module in code? It would make my code backwards compatible and make it easy for future firmware updates etc.
I did some cursory search and the closest thing is a
PLATFORM_ID but that is meant to identify a Photon vs Electron.