1
0
mirror of https://github.com/s00500/ESPUI.git synced 2024-11-22 09:10:54 +00:00

added ESPUI::updateLabel (works like ESPUI::print)

This commit is contained in:
Christian Riggenbach 2019-03-03 21:46:38 +01:00
parent 6810f7432f
commit 37ce571b9c
2 changed files with 11 additions and 0 deletions

View File

@ -533,6 +533,14 @@ void ESPUIClass::print( String label, String value ) {
updateControl( label, value );
}
void ESPUIClass::updateLabel( int id, String value ) {
updateControl( id, value );
}
void ESPUIClass::updateLabel( String label, String value ) {
updateControl( label, value );
}
void ESPUIClass::updateSlider( int id, int nValue, int clientId ) {
updateControl( id, String( nValue ), clientId );
}

View File

@ -212,6 +212,9 @@ class ESPUIClass {
void print( int id, String value );
void print( String label, String value );
void updateLabel( int id, String value );
void updateLabel( String label, String value );
void updateSwitcher( int id, bool nValue, int clientId = -1 );
void updateSwitcher( String label, bool nValue, int clientId = -1 );