Skip to content
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

Multi Relay in AP Mode (/relays) not working? #4571

Open
1 task done
pixelwave opened this issue Feb 20, 2025 · 4 comments
Open
1 task done

Multi Relay in AP Mode (/relays) not working? #4571

pixelwave opened this issue Feb 20, 2025 · 4 comments

Comments

@pixelwave
Copy link

What happened?

WLED v0.16.0-alpha "Kosen"


I use a WLED controller in AP only mode for a local installation without Wifi availability.

I sent HTTP commands to that WLED controller (ESP32 WROOM) from a Remote (another ESP32) that is connected to that AP.

Commands like http://4.3.2.1/win&A=255 work.

Trying to toggle a relay with http://4.3.2.1/relays?toggle=0,1,0,0 returns a 404 page.

When I connect the WLED controller to my local Wifi the command http://192.168.178.59/relays?toggle=0,1,0,0 works as expected.

Is the endpoint /relays only available when connected to a WLAN?

Those two work even in AP mode:
/json
/win

To Reproduce Bug

Put WLED controller in AP mode and send HTTPrequest to /relays

Expected Behavior

HTTPrequest sent to /relays works in AP & Wifi Mode.

Install Method

Self-Compiled

What version of WLED?

WLED v0.16.0-alpha "Kosen"

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@pixelwave pixelwave added the bug label Feb 20, 2025
@blazoncek
Copy link
Collaborator

This behaviour is by design/original implementation.

Image

Use JSON API if you want to control relays while in AP mode.

@blazoncek blazoncek removed the bug label Feb 20, 2025
@pixelwave
Copy link
Author

pixelwave commented Feb 20, 2025

Ah ok, thanks for clarification @blazoncek !

Would there be an "easy fix" by uncommenting or adding a line if I compile my own firmware?

So I also have access to /relays in AP mode? I wrote my entire query relay status and toggle now using /relays access.

@blazoncek
Copy link
Collaborator

IDK, never needed that. If you find a solution, please submit a PR.

@pixelwave
Copy link
Author

Will try to figure something out. But I am far from an expert coder. x)

It feels a bit more like a bug than a feature that while /json and /win work in AP mode, /relays does not.

Has this something to do with usermods having more strict security guidelines?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants