I'm looking for some advice for my Webserver.
from my application i get a POST request with an empty body. So that means i get a POST request and all the info I need I get from the URL which my application is sending to.
All reachable URL's should cover those cases, but without initialising each and everyone, one by one:
IP/command/on or off/number between 1-n
So for Example if i want to turn off my led on pinnumber 20 i send my POST request on the following URL:
At first I fixed this problem by the following line of Code:
But now i can't use the
WebServer.h library anymore and to be honest, this wasnt really a good solution, since the only thing that happened is, that i allow number in the URL between 1 and 9.
Now i want to ask if someone knows a more "elegant" way to work around that problem.
Thanks in advance!