Take the 2-minute tour ×
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It's 100% free, no registration required.

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?

share|improve this question
    
Just to be perfectly clear, it is illegal in C++ to have a variable name start with (or be) a number. –  Annonomus Penguin Jan 28 at 2:56

1 Answer 1

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.