From 7e1b3b95003d8994d0ab628e2f68ef67f37e5c4f Mon Sep 17 00:00:00 2001 From: Torrie Fischer Date: Sat, 23 Dec 2023 11:04:39 +0100 Subject: [PATCH] platform: add api for grabbing the system hostname --- src/Platform.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Platform.h b/src/Platform.h index 3130ab3..451b7f3 100644 --- a/src/Platform.h +++ b/src/Platform.h @@ -27,6 +27,10 @@ class Platform : public Task { static String devName = model() + " " + Platform::deviceID(); return devName; } + static const String deviceHostname() { + static String devName = String("renderbug-") + Platform::deviceID(); + return devName; + } static void preSetup(); static void bootSplash(); static void setup();