mirror of
https://github.com/btclock/btclock_v3.git
synced 2024-11-19 06:10:00 +01:00
Add HW revision to mDNS for updates
This commit is contained in:
parent
ef7d629e8c
commit
858241bd57
@ -717,3 +717,11 @@ void setupFrontlight()
|
|||||||
flArray.allOFF();
|
flArray.allOFF();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
String getHwRev() {
|
||||||
|
#ifndef HW_REV
|
||||||
|
return "REV_0";
|
||||||
|
#else
|
||||||
|
return HW_REV;
|
||||||
|
#endif
|
||||||
|
}
|
@ -63,3 +63,4 @@ void improv_send_response(std::vector<uint8_t> &response);
|
|||||||
void improv_set_error(improv::Error error);
|
void improv_set_error(improv::Error error);
|
||||||
|
|
||||||
void WiFiEvent(WiFiEvent_t event, WiFiEventInfo_t info);
|
void WiFiEvent(WiFiEvent_t event, WiFiEventInfo_t info);
|
||||||
|
String getHwRev();
|
@ -94,6 +94,7 @@ void setupWebserver() {
|
|||||||
MDNS.addServiceTxt("http", "tcp", "model", "BTClock");
|
MDNS.addServiceTxt("http", "tcp", "model", "BTClock");
|
||||||
MDNS.addServiceTxt("http", "tcp", "version", "3.0");
|
MDNS.addServiceTxt("http", "tcp", "version", "3.0");
|
||||||
MDNS.addServiceTxt("http", "tcp", "rev", GIT_REV);
|
MDNS.addServiceTxt("http", "tcp", "rev", GIT_REV);
|
||||||
|
MDNS.addServiceTxt("http", "tcp", "hw_rev", getHwRev());
|
||||||
}
|
}
|
||||||
|
|
||||||
xTaskCreate(eventSourceTask, "eventSourceTask", 4096, NULL, tskIDLE_PRIORITY,
|
xTaskCreate(eventSourceTask, "eventSourceTask", 4096, NULL, tskIDLE_PRIORITY,
|
||||||
|
Loading…
Reference in New Issue
Block a user