CONNECT ESP8266 WIFI MODULE TO PC

For general Flowcode discussion that does not belong in the other sections.
chipfryer27
Valued Contributor
Posts: 1165
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 287 times
Been thanked: 415 times

Re: CONNECT ESP8266 WIFI MODULE TO PC

Post by chipfryer27 »

Hi

Perhaps you could use ThingSpeak as an option?

https://thingspeak.com/

Create a channel and set your PIC to populate it. Plenty of examples out there and I've recently documented using a PIC and ESP8266 in the v8 forum.

ThingSpeak will accept, display and store your data all in real time, and you can download at your leisure.

Regards

EDIT....
Forgot to include v8 link https://www.matrixtsl.com/mmforums/view ... 83#p106883

CATSTAR
Posts: 18
Joined: Tue Dec 27, 2022 12:44 pm
Has thanked: 3 times
Been thanked: 1 time

Re: CONNECT ESP8266 WIFI MODULE TO PC

Post by CATSTAR »

Hi,
the demo sequence to send data from ESP8266 to PC using WLAN_ESP8266 component
ESP8266 as WIFI Stasion (STA)

Initialise
ConnectToSSID
ClientConnect
ClientSentArray
GetByteWithTimeout
GetInValue
wifi connection ESP8266 with PC router is ok..but I receive no data...what is wrong?...is there a need a circular buffer for data store ? what are correct component macros that I must use?

kersing
Valued Contributor
Posts: 162
Joined: Wed Dec 02, 2020 7:28 pm
Has thanked: 66 times
Been thanked: 58 times

Re: CONNECT ESP8266 WIFI MODULE TO PC

Post by kersing »

What software are you running at the PC side to connect to and send the data to in the ClientConnect and ClientSentArray macros?

CATSTAR
Posts: 18
Joined: Tue Dec 27, 2022 12:44 pm
Has thanked: 3 times
Been thanked: 1 time

Re: CONNECT ESP8266 WIFI MODULE TO PC

Post by CATSTAR »

The flowcode is demo under test...I think that the macros after ClientConnect are wrong..I would like to use MS Excel (Data Streamer feature) to display data ...another option that I'll test is an app "ThingsGateway" , that connects serial channel to Excel and displays data..In this case I would like only to get and display sensors data to Excel in real time...what are the macros that I must use after ClientConnect to get data ? sensors are connected to PIC18F46K22, that is connected to ESP8266 with TX, RX and reset...

kersing
Valued Contributor
Posts: 162
Joined: Wed Dec 02, 2020 7:28 pm
Has thanked: 66 times
Been thanked: 58 times

Re: CONNECT ESP8266 WIFI MODULE TO PC

Post by kersing »

You need to think about either running software on the PC that can receive TCP connections and save the data (no that won’t be excel without a lot of programming in VBA) or use a cloud service as suggested by chipfryer27.

CATSTAR
Posts: 18
Joined: Tue Dec 27, 2022 12:44 pm
Has thanked: 3 times
Been thanked: 1 time

Re: CONNECT ESP8266 WIFI MODULE TO PC

Post by CATSTAR »

Do you suggest a software that can receive TCP connections? is there a flowcode example to get data from ESP8266 ?

kersing
Valued Contributor
Posts: 162
Joined: Wed Dec 02, 2020 7:28 pm
Has thanked: 66 times
Been thanked: 58 times

Re: CONNECT ESP8266 WIFI MODULE TO PC

Post by kersing »

Have you checked the suggested cloud service?

CATSTAR
Posts: 18
Joined: Tue Dec 27, 2022 12:44 pm
Has thanked: 3 times
Been thanked: 1 time

Re: CONNECT ESP8266 WIFI MODULE TO PC

Post by CATSTAR »

Yes, I prefer to run a software on the PC..

CATSTAR
Posts: 18
Joined: Tue Dec 27, 2022 12:44 pm
Has thanked: 3 times
Been thanked: 1 time

Re: CONNECT ESP8266 WIFI MODULE TO PC

Post by CATSTAR »

Another option is to use another ESP8266 that receive data from the first ESP...the second ESP is connected to PC with serial to USB converter...so, it's possible to use ThingsGateway serial to Excel ..so I need only the code for the set PIC-first ESP ,with Flowcode WLAN_ESP8266 component..
ESP8266 as Client -----send data WIFI ---->ESP8266 as Server ---serial---->PC---->ThingsGateway---->Excel.
so, I need only codes for two ESP...

chipfryer27
Valued Contributor
Posts: 1165
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 287 times
Been thanked: 415 times

Re: CONNECT ESP8266 WIFI MODULE TO PC

Post by chipfryer27 »

Hi

What sort of distance are you trying to communicate over?

As mentioned before you may be better off using a RF serial link. If so you can just get Excel Data Streamer to capture the data directly.

When I searched for ThingsGateway I got results for a LoRa Gateway so I'm not really sure how that fits in with your intent.

Did you know that you can get local versions of "Cloud" software, therefore your data stays within your own network?

Regards

Post Reply