I've searched for this and can't find any resources. I want to send a Slider's thumbPosition over Wifi and have it read in my Arduino/ESP32 code as a byte value. I can send the value using 'set Web1.URL' to 'get thumbPosition', but this just sends it as a random String. I want to identify this string as an important value and assign it to a byte variable in my Arduino code.
- How do you send and receive numeric values like this, and differentiate them from other strings (like 'ButtonAWasPressed")? Numbers have different importance from Strings. fyi, I'm using 'client.readStringUntil('\r')' in my Arduino code to get the string value after the IP address.
- It seems like the only variable type you can send and receive are generic Strings, which means you have to identify the meaning of the String inside the String itself (like "ButtonAWasPressed"). Is the only way to identify numeric values to parse these strings, and therefore I need to add "identifiers" inside the strings in order to separate them into things like "Color Value" or "Brightness"? (Is this making sense??). It's weird because you can send a String value like "ButtonAWasPressed", and know exactly how to interpret it. But if you send a random number like "47", how do you know how to interpret it in the code?? Thank you for any insight.