mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-23 19:26:38 +00:00
Add display resolution #278
This commit is contained in:
parent
98e8289969
commit
a7a437f48f
@ -1113,6 +1113,11 @@ void dispatch_send_discovery(const char*, const char*, uint8_t source)
|
|||||||
gpio_discovery(input, relay, led, dimmer);
|
gpio_discovery(input, relay, led, dimmer);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Display resolution
|
||||||
|
JsonArray disp = doc.createNestedArray(F("disp"));
|
||||||
|
disp.add(haspTft.tft.width());
|
||||||
|
disp.add(haspTft.tft.height());
|
||||||
|
|
||||||
size_t len = serializeJson(doc, data);
|
size_t len = serializeJson(doc, data);
|
||||||
|
|
||||||
switch(mqtt_send_discovery(data, len)) {
|
switch(mqtt_send_discovery(data, len)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user