-
Notifications
You must be signed in to change notification settings - Fork 638
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
Sonoff 4CH Pro AP mode #551
Comments
I should check this, it should stay in AP mode for at least 2 minutes if I recall. |
Can't reproduce this issue without more info. Can you copy here the debug log while doing the before procedure? |
I'm using 1.12.3 and I modified code/espurna/config/hardware.h and I commented line 484 & 485 #define BUTTON1_LNGCLICK BUTTON_MODE_NONE & #define BUTTON1_LNGLNGCLICK BUTTON_MODE_NONE With Sonoff 4CH Pro connected to my wifi, I do a longpress on button 1 and it seems to turn to AP mode (according to LED) but then it connects to wifi immediatly. I'll disconnect it from main power and do a debug log. |
Hello, Here is the log: |
In the log, you can see a "Button #0 event 4" that is resetting the device. Event 4 is BUTTON_EVENT_LNGCLICK. When you commented the 484 line the firmware uses the default action for a long click on button 0 defined in defaults.h. And that's a reset.
|
Oh ok thanks. Yes according to what is written in hardware.h I thought that a long press switch to AP mode. I've replaced the line as you said. Thanks. |
Staged for release |
Hello,
I'm using a Sonoff 4CH Pro with 1.12.3.
I've commented
#define BUTTON1_LNGCLICK BUTTON_MODE_NONE #define BUTTON1_LNGLNGCLICK BUTTON_MODE_NONE
and when I do a long press on button 1, it goes to AP mode but after 2-3s, it connects back to wifi.
Do you know how to use AP mode with this sonoff 4CH pro please.
Best regards,
The text was updated successfully, but these errors were encountered: