Pre-compile directive similar to PLATFORM_ID for the Device Name

Is there a Pre-compile directive similar to PLATFORM_ID for the Workbench device name? Is there some other clever workaround?

I set up #define for unique configuration of a device and separately choose a device name. Every so often I waste a couple hours trying to understand some bizarre result.

The device name is not stored on the device nor available at compile time.
In order to obtain the device name you need to request it from the cloud - that's where that information resides.

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.