I've been struggling for a few weeks now, trying to get two Arduinos remotely talking to one another.I have tried HC-08, hc-05, hc-06, nRF24, and even some old Laipac 415 and 900 MHz radios. Best luck I've had so far is with a WeMos Arduino board.
I keep running into guides and tutorials that either don't do quite what I want, or use steps that I can't complete for various reasons (wrong board type, libraries I can't find, etc.). I am no stranger to programming, but these modules baffle the heck out of me.
My project is simple. I need to send a 3 or 4 byte message to the remote end and receive acknowledgement that it got there. At the remote end, I will, depending on the message, drive one of two pins low for a short time.
I am hoping to be able to use WiFi, Bluetooth, or the nRF24 radio. The range required is short, perhaps 20-25 feet. If I am using WiFi, I would prefer to use an IP address range outside any WiFi routers in the immediate area, as this will be a single purpose application, not requiring any other computers or the internet.
My first question is "What configuration would be best for this?" I am currently working on a WeMOS solution because I have managed to implement an Access point, and have had another Arduino programmed as a Client connect to it. Unfortunately, the communication does not fully work.
I get an IP address on the Arduino serial port: 192.168.4.1
On my client, I get:
.....................................
WiFi connected
IP address:
192.168.4.2
connecting to 192.168.4.1:80
sending data to server
Client Timeout !
So before I get too far into getting this working, can anyone tell me if I am on the right track?
I keep wondering if I should use a web server, http server, or whatever. I have a lot of examples in the ESP8266 library, but have no idea how best to do what I want.
If so, I will post code in the "Programming Questions" forum, as I did not really know if I should post it here.