mirror of
https://github.com/btclock/btclock_v3.git
synced 2024-11-19 04:30:02 +01:00
Add HW revision to mDNS for updates
This commit is contained in:
parent
ef7d629e8c
commit
858241bd57
@ -716,4 +716,12 @@ void setupFrontlight()
|
|||||||
// }
|
// }
|
||||||
flArray.allOFF();
|
flArray.allOFF();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
String getHwRev() {
|
||||||
|
#ifndef HW_REV
|
||||||
|
return "REV_0";
|
||||||
|
#else
|
||||||
|
return HW_REV;
|
||||||
|
#endif
|
||||||
|
}
|
@ -62,4 +62,5 @@ void improv_set_state(improv::State state);
|
|||||||
void improv_send_response(std::vector<uint8_t> &response);
|
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