I am having problems to set up an accesspoint on my raspberry 3.
The purpose is, that I want a MQTT server runnig on the pi and other devices should connect to the pi. I need no bridge to the internet or similiar things, just a connection between my mqtt server (pi) and the clients. The whole setup needs to be portable, so whereever the pi boots up a SSID should be visible and accesable.
I found these two links:
https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md
https://www.raspberrypi.org/forums/viewtopic.php?t=191453
I started with a fresh raspian stretch image. Like suggested I installed dnsmasq
and hostapd
and made the following changes:
In /etc/dhcpcd.conf
:
interface wlan0
static ip_address=192.168.4.1/24
static routers=192.168.4.1
static domain_name_servers=8.8.8.8
In /etc/dnsmasq.conf
:
interface=wlan0
domain-needed
bogus-priv
dhcp-range=192.168.4.2,192.168.4.20,24h
In /etc/hostapd/hostapd.conf
:
interface=wlan0
driver=nl80211
ssid=SSID
hw_mode=g
channel=7
wmm_enabled=0
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=PW
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
In /etc/default/hostapd
:
DAEMON_CONF="/etc/hostapd/hostapd.conf"
But after all nothing happens, i tried rebooting and restarting the services but nothing.. There is no SSID
Then I again started with a fresh stretch installation and did every single step like its written in the documentation, but again i had no success.
Can somebody tell me what I am doing wrong? Or how to debug? Or is there even a more simple solution for my problem?
curl
and a afterwardswget
. I don't understand this step. Both programs can do the same. Can you explain it please? – Ingo Feb 09 '18 at 09:25