This is an old revision of the document!
On this page we will explain how to turn your Raspberry Pi 3 (also works with 3+) into a broker with Wifi access point. Having the Raspberry Pi working as an access point means that you will not need an additional router (NB. we have not tested this under heavy load). If you have a spare router and do not wish to install our image then you can follow the instructions here on how to turn any Raspberry Pi into a broker.
You can download the image file for the configuration with AP and MQTT broker here:
And you can find a guide on how to install it here. You will need a 16GB (or larger) micro-SD card since the original image was on such a card.
Once you have flashed the image to the SD-card you should insert it to your Raspberry and boot it up. The MQTT broker service and Wifi-AP service should activate on their own. You can use the terminal on the Raspbian to confirm if your broker is working. For this open a terminal window and enter
mosquitto_sub -t "mytopic"
Then open another terminal window and enter
mosquitto_pub -t "mytopic" -m "This is my message"
If this works then the next thing you should try is connecting your laptop (or other) device to the Raspberry and test publishing and subscribing to messages with it. A good program for debugging is MQTTBox. You can find the default Wifi name and password below.
IP address of Raspberry Pi (for broker and SSH): 192.168.4.1:22
Raspberry login (SSH): usr: pi pw: raspberry
Raspberry Wifi: ssid: raspberryIoT pw: piIoT123