TCP server Station mode

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
User avatar
achillis1
Posts: 347
Joined: Thu Oct 09, 2008 9:19 am
Has thanked: 91 times
Been thanked: 8 times
Contact:

TCP server Station mode

Post by achillis1 »

Hello ,
I have noticed some examples found in the help web page for wlan esp8266. One is the TCP server that a PC can connect the the esp8266 access point and switch on off LEDs.
The other is the TCP client that the esp8266 connects to home router and accesses matrix's web page.

Is there an example of those 2 combined?
It would be good to connect the esp8266 to home router and switch LEDs on off through the internet by enabling port forward on home router.

Thank you
Best Regards
Andreas Achilleos

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: TCP server Station mode

Post by LeighM »

Hi,
In the absence of time to create a demo for you, I would suggest that you start with the Server example,
but instead of creating an access point, connect to your home router with ConnectToSSID, as in the "Join AP" example.
You will need to use the displayed IP address allocated by your access point to then enable the port forwarding on it.
Hope that gets you started.

Post Reply