Function to get the display name

This commit is contained in:
Ryan McCahan 2024-03-31 00:38:39 -06:00
parent af447fa76e
commit 4211a3679b
No known key found for this signature in database
GPG Key ID: 4AD93D9FB6994DFA
2 changed files with 8 additions and 0 deletions

View File

@ -1159,6 +1159,12 @@ void Span::getWebLog(void (*f)(const char *, void *), void *user_data){
///////////////////////////////
const char* Span::getDisplayName(){
return(this->displayName);
}
///////////////////////////////
void Span::resetStatus(){
if(strlen(network.wifiData.ssid)==0)
STATUS_UPDATE(start(LED_WIFI_NEEDED),HS_WIFI_NEEDED)

View File

@ -365,6 +365,8 @@ class Span{
Span& setWebLogCallback(void (*f)(String &)){weblogCallback=f;return(*this);}
void getWebLog(void (*f)(const char *, void *), void *);
const char* getDisplayName();
Span& setVerboseWifiReconnect(bool verbose=true){verboseWifiReconnect=verbose;return(*this);}
Span& setRebootCallback(void (*f)(uint8_t),uint32_t t=DEFAULT_REBOOT_CALLBACK_TIME){rebootCallback=f;rebootCallbackTime=t;return(*this);}