mirror of
https://github.com/s00500/ESPUI.git
synced 2024-12-23 05:50:49 +00:00
Used access functions for id and type
This commit is contained in:
parent
0a0a97d7f9
commit
89d592911e
@ -37,7 +37,7 @@ void numberCall(Control* sender, int type)
|
||||
void textCall(Control* sender, int type)
|
||||
{
|
||||
Serial.print("Text: ID: ");
|
||||
Serial.print(sender->id);
|
||||
Serial.print(sender->GetId());
|
||||
Serial.print(", Value: ");
|
||||
Serial.println(sender->value);
|
||||
}
|
||||
@ -45,7 +45,7 @@ void textCall(Control* sender, int type)
|
||||
void slider(Control* sender, int type)
|
||||
{
|
||||
Serial.print("Slider: ID: ");
|
||||
Serial.print(sender->id);
|
||||
Serial.print(sender->GetId());
|
||||
Serial.print(", Value: ");
|
||||
Serial.println(sender->value);
|
||||
// Like all Control Values in ESPUI slider values are Strings. To use them as int simply do this:
|
||||
@ -130,7 +130,7 @@ void padExample(Control* sender, int value)
|
||||
}
|
||||
|
||||
Serial.print(" ");
|
||||
Serial.println(sender->id);
|
||||
Serial.println(sender->GetId());
|
||||
}
|
||||
|
||||
void switchExample(Control* sender, int value)
|
||||
@ -147,7 +147,7 @@ void switchExample(Control* sender, int value)
|
||||
}
|
||||
|
||||
Serial.print(" ");
|
||||
Serial.println(sender->id);
|
||||
Serial.println(sender->GetId());
|
||||
}
|
||||
|
||||
void otherSwitchExample(Control* sender, int value)
|
||||
@ -164,7 +164,7 @@ void otherSwitchExample(Control* sender, int value)
|
||||
}
|
||||
|
||||
Serial.print(" ");
|
||||
Serial.println(sender->id);
|
||||
Serial.println(sender->GetId());
|
||||
}
|
||||
|
||||
void setup(void)
|
||||
|
Loading…
Reference in New Issue
Block a user