Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4213

Beginners • Re: NodeMCU 8266 wireless communication with Raspberry pi 4b+

$
0
0
I have a project where I have a central Raspberry Pi 4b+ which then communicated to ~10 'pucks' with NodeMCU ESP8266 on the exterior. You can think of them as reaction trainers with just LED's and IR distance sensor. I want to send information from the pi to the pucks and vice versa. Critically while setting up I can connect to an ethernet port, but this needs to function in an environment completely void of any known wifi networks (from my understand this is okay as the pi can set up its own wifi the pucks can subscribe and publish too, and vice versa).

Using Mqtt I got messages to work perfectly from the pucks to the pi and back, but once the pi is disconnected from the wifi it no longer worked. (which is when I discovered I need to set it up as an access point i believe). I've tried to follow some guides online with dhcpcd, hostapd and dnsmasq but I cannot seem to get them to work. I wanted to see if I am on the right track here, and if anyone knows any good up to date guides to follow on this subject?

Thank you all for your help in advance


If you run the current RasPiOS Bookworm OS on your RPi4B board [note, there is no RPi4b+ model] then setting up a wireless 'hotspot' is a trivial one-line operation.

Starting with Raspberry Pi documentation is very often the best first step.

Ref: Host a wireless network on your Raspberry Pi https://www.raspberrypi.com/documentati ... spberry-pi

Statistics: Posted by B.Goode — Tue May 07, 2024 6:23 am



Viewing all articles
Browse latest Browse all 4213

Trending Articles