AFAIK there is no easy to use API (e.g. like System.get("")
) to readout the stored name. You could read the DCT area where this info is stored tho’
But you could flip the logic round and set your own SSID - then you do know what to display
System.set(SYSTEM_CONFIG_SOFTAP_PREFIX, "Prefix");
System.set(SYSTEM_CONFIG_SOFTAP_SUFFIX, "Suffix");
But then you need to know that CLI and Particle mobile apps won’t find your device via “Photon-xxxx” anymore.