I have designed two simple boards each equiped with one ESP8266 - 12 and a PIC 18F4550 MCU
I want the two boards to communicate in order to build a "long range" wireless joystick
One board will be Access Point and acts as TCP server
The other Station and connects the first as a TCP client
The two boards works really well but only "alone"
As long as I try to link one to the other I can't establish the connection, and I get an "ERROR unlink"
Here is what I do :
board one :
AT+CWMODE=3 (both station and AP)
AT+CWSAP="JP ESP8266","",1,0 (fully opened AP)
AT+CIPMUX=1 (multiple connections allowed)
AT+CIPSERVER=1,5000
On the second board :
AT+CWJAP="JP ESP8266","" (join the first board AP)
AT+CIPMODE=1
AT+CIPSTART="TCP","192.168.4.1",5000
And here I get the unlink error
It is incredibly frustrating... both boards works really well with a PC server or an Android client... but fail to connect each other
Would you have any idea how to solve this issue ?
(I know that NodeMCU allows this but it is too slow for my application)
Thanks
JP