platform: add api for grabbing the system hostname

This commit is contained in:
Torrie Fischer 2023-12-23 11:04:39 +01:00
parent 0106b09c9b
commit 7e1b3b9500

View File

@ -27,6 +27,10 @@ class Platform : public Task {
static String devName = model() + " " + Platform::deviceID(); static String devName = model() + " " + Platform::deviceID();
return devName; return devName;
} }
static const String deviceHostname() {
static String devName = String("renderbug-") + Platform::deviceID();
return devName;
}
static void preSetup(); static void preSetup();
static void bootSplash(); static void bootSplash();
static void setup(); static void setup();