-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example doesnt use the same URLS #11
Comments
I'm sorry but I'm missing too much informations to help you. Where does your |
Hey, sorry I thought i was raising an issue for a specific file. It's the arduino example, I think the arduino side of things is correct but I did just find that Igor mentions modifying a JSON file in another issue. I can't find exactly what he's refrencing. |
Oh, my bad. This Arduino sketch is from Igor. Sorry to ping you, @IgorFX, but if you know what this brave fellow is talking about it would be very nice. |
Hi Nicnl Got it working, I was over thinking it Instead of '"set_target_position_url": "http://192.168.1.55/set/%position%",' needs to be'"set_target_position_url": "http://192.168.1.55/set?pers=%position%",' |
Hello |
Hello
I've been modifying this code to work with your home bridge plugin. I have modified the current state and current position but cannot get /set working at all
Is this correct for this line?
server.on("/set", HTTP_POST, handleLogin); //Position from Homebridge
and for server.arg(???) what has to be in place for this part??
`void handleLogin()
{
pers = server.arg("pers"); // Get persentage of position string
int persent = pers.toInt();`
I'm guessing this function 'void handleLogin()' is correct to receive http://x.x.x.x/set/0->100 from the home bridge??
The text was updated successfully, but these errors were encountered: