Maybe this adds another small bit of help: You can choose if you like to use the pin number or the gpio "name" like gpio 18.
If you like to set the pin number, do
or use the gpio name with
Also a good help for debugging with gpio's is the wiring pi gpio utility (from here) to access the gpio's from the ...
It seems that you only found setups, using routing. But it is no problem to setup the WiFi access point on the RasPi to be on the same internal subnet as the internet router. You have to bridge the wired connection to the router on eth0 with the wlan0 interface of the access point. This way you are even on the same broadcast domain as the router, so your ...
Remove your GPIO.cleanup() lines, this would normally only be called before you exit a program.
At the end any program, it is good practice to clean up any resources
you might have used. This is no different with RPi.GPIO. By returning
all channels you have used back to ...
For the future, you can get hints about missing commands directly in the command line:
$ sudo apt install command-not-found
$ sudo update-command-not-found
The program 'dkms' is currently not installed. You can install it by typing:
sudo apt-get install dkms
Of course it's not smart enough to tell you that dkms is indeed the command you need, or ...
Automatically installing Linux kernel modules with the DKMS framework
is a convenient way of distributing drivers that are maintained
outside of the official kernel. However, while DKMS is included in
many popular Linux distributions and supports most kernel modules, it
can’t always guarantee the proper installation of a third-party