0

Would it be possible to instead of passing a state via a REST browser:

digital/13/1

to set an int value? For example, if in the sketch if I would name an int: 2, could I set this to 48 via REST?

If so, how?

Anonymous Penguin's user avatar
Anonymous Penguin
6,36510 gold badges34 silver badges62 bronze badges
askedJan 26, 2015 at 20:20
Val Hillebrand's user avatar
1
  • Just to be perfectly clear, it is illegal in C++ to have a variable name start with (or be) a number.CommentedJan 28, 2015 at 2:56

1 Answer1

1

Check out theTemperatureWebPanel example: you'll see that you can make your own REST APIs and pass any values your sketch can handle.

answeredJan 27, 2015 at 7:48
Federico Fissore's user avatar

Your Answer

Sign up orlog in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

By clicking “Post Your Answer”, you agree to ourterms of service and acknowledge you have read ourprivacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.