ESP8266 code example

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

Moderator: Benj

Post Reply
gonzogonzo
Posts: 56
Joined: Mon Aug 11, 2014 3:57 pm
Has thanked: 18 times
Been thanked: 17 times

ESP8266 code example

Post by gonzogonzo »

Hello,
i have some day ago buy flowcode 7 and i have also some ESP8266 module.
It is possible use module work like a AP server that send a simply string to PC connected, without
use webserver or html (i am not expert about this)?
Thanks

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times

Re: ESP8266 code example

Post by QMESAR »

Hi

I am no expert with this however I would expect the ESP8266 and FC7 should allow you to do a pear to pear connection(PC and ESP8266 connected togehter)
I hope one of the more experienced guys will give you a definite answer :D

chipfryer27
Valued Contributor
Valued Contributor
Posts: 786
Joined: Fri Jun 06, 2014 3:53 pm
Has thanked: 187 times
Been thanked: 205 times

Re: ESP8266 code example

Post by chipfryer27 »

Hi

I have only just upgraded to v7 and only now going through this forum, so apologies for the late contribution.

You can do many things with the ESP module, but can you give a better example of what you would like to do as the following doesn't really tell me your goal.

"It is possible use module work like a AP server that send a simply string to PC connected"

Are you looking to create a peer-to-peer link between two computers with the ESP in the middle acting as a "WiFi router", or are you wanting a microcontroller to send data directly to a PC via the ESP or vice-versa?

I'm no expert in HTML or the like but I have, using examples as guidance, had PC databases polling uC for updated data, and updated databases from uCs, so I will say "yes" to your question, subject to knowing a little more on what it is you are trying to achieve.

Regards

Edit----

Sorry, just remembered this. If you are wanting low speed peer-to-peer from PC to PC or uC to uC or PC to uC, it may be easier for you to look at the Gamma Modules (or similar) from https://www.rfsolutions.co.uk as you won't need any coding. They can be set up as transceivers over considerable distance as long as you have a low data rate. Use the UART / RS232 component in Flowcode to send / receive data to the Gammas.

Using these modules I created two remote "sensors" which sent data to a receiver. The output of the receiver was monitored by a uC which then sent alerts via "notify my android" using a ESP to connect with my home broadband. All code within the uC was of course created in Flowcode.

Post Reply