I have buttons and a slider in a websocket server programme and a two void notifyCients wich conflict
void notifyClients(String sliderValues) {
ws.textAll(sliderValues);
}
and]
void notifyClients2(String state) {
ws.textAll(state);
}
can join both in one void statement
regards Dave
Hi.
What do you mean by conflict?
You need to be more specific. Can you provide more details?
Regards,
Sara
Hi Sara
please find link to code
https://docs.google.com/document/d/1IOpTmpmXArOr5HuGfhx1p_AWgGZwqnGdcFGDXiOAoX8/edit?usp=sharing
hope this works
regards
Hi again.
I’m currently away from home and I can’t test your code.
Please share the exact issues that you get and errors so that it’s easier to understand why it doesn’t work.
Regards,
Sara
HI
The error I am getting is
src\main.cpp:81:6: note: ‘void notifyClients(String)’ previously defined here
void notifyClients(String sliderValues) {
I think the problem is that I have two ‘void notifyClient’ values
void notifyClients(String sliderValues) {
ws.textAll(sliderValues);
}
and]
void notifyClients2(String state) {
ws.textAll(state);
}
thanks for your help
regards Dave
You can’t have multiple functions with the same name.
Each function needs to have a unique name.
Regards,
Sara