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

IoT: PirMotionSensor is also a WiFi accesspoint #14

Open
tingox opened this issue Dec 7, 2017 · 1 comment
Open

IoT: PirMotionSensor is also a WiFi accesspoint #14

tingox opened this issue Dec 7, 2017 · 1 comment

Comments

@tingox
Copy link
Contributor

tingox commented Dec 7, 2017

We have discovered that ESP32 devices (like ESP8266 etc.) defaults to client + AP (accesspoint) at least when configured as a client (WiFiClient) with Arduino IDE. Usually, you don't want an extra AP when you set up a IoT device that only works as a client. To fix the problem you need to add the line

WiFi.mode(WIFI_STA);

when setting up the wireless in your Arduino code.
The current PirMotionSensor code needs this fix.

@tingox
Copy link
Contributor Author

tingox commented Dec 7, 2017

To see an example which does not have this issue, see the file

https://github.com/bitraf/bitraf-iot/blob/master/singlebutton/singlebutton.ino

in this repository.

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

1 participant