M
M
Max_Drevo2019-12-11 10:59:50
Do it yourself
Max_Drevo, 2019-12-11 10:59:50

How to set up WiFi mode switching on Rapsberry pi zero w by pressing/switching an external button?

I searched for information but did not find anything sane.
You need to configure RPI zero w so that it can switch from client mode to access point mode.
I see 2 types of solutions:
1) see a known grid, connect to it. If we do not see it, we switch to the access point mode.
2) Switching by button. After loading, we are looking for saved grids, if the button is pressed, then we switch to the Access Point mode.
But the Chukchi is not a programmer, and doesn’t know how to do it (Arduino and Hello world in Python are my limit, but you can’t hide the sting). I’m not asking you to completely do everything for me, but at least if you give a link to the resources, I’ll be happy!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
towin, 2019-12-11
@towin

I think it's worth starting with a list of Linux commands that do what you need.
Further we make out all these commands in one shell script.
Next, we write a simple demon that will check the state of the button (there is probably a command line program for this) and run our script to switch WiFi.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question