Page 1 of 1

ESP8266 code example

Posted: Sat Nov 12, 2016 4:53 pm
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

Re: ESP8266 code example

Posted: Sat Nov 12, 2016 5:11 pm
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

Re: ESP8266 code example

Posted: Sat Apr 22, 2017 12:55 pm
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.