Hi Rudi
Echo on or off makes no difference.
I can monitor both Tx and Rx on the ESP / uC so I can see what goes in and what comes out. Once the ClientConnect (for example) is issued, the Flowcode Macro itself is looking to see the ESP reply with "Linked".
If you look in the "C", you will find around line 1447 FCL_DONE = FCD_08181_WLAN_ESP8266__CheckForData("Linked", 7);
So unless the ESP sends "Linked" to the uC, then the program halts until timeout.
Regards
Using the ESP8266 examples
Moderator: Benj
-
- Valued Contributor
- Posts: 657
- Joined: Fri Jun 06, 2014 3:53 pm
- Has thanked: 184 times
- Been thanked: 203 times
- Contact:
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
- Contact:
Re: Using the ESP8266 examples
Could you try attached component where you are able to change the response to expect in the properties? (Set the responses your firmware provides in the items below ESP Responses)
- Attachments
-
- WLAN_ESP8266.fcpx
- (16.44 KiB) Downloaded 408 times
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
-
- Valued Contributor
- Posts: 657
- Joined: Fri Jun 06, 2014 3:53 pm
- Has thanked: 184 times
- Been thanked: 203 times
- Contact:
-
- Valued Contributor
- Posts: 657
- Joined: Fri Jun 06, 2014 3:53 pm
- Has thanked: 184 times
- Been thanked: 203 times
- Contact:
Re: Using the ESP8266 examples
Hi Kersing
I moved my original component to a different directory before downloading yours and restarting Flowcode.
However when I add in a new Component Macro and select ClientConnect I don't see any options in properties to select a response, just the same parameters as normal.
Am I doing something wrong?
Regards
I moved my original component to a different directory before downloading yours and restarting Flowcode.
However when I add in a new Component Macro and select ClientConnect I don't see any options in properties to select a response, just the same parameters as normal.
Am I doing something wrong?
Regards
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
- Contact:
Re: Using the ESP8266 examples
The response strings are located in the component properties.
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
-
- Valued Contributor
- Posts: 657
- Joined: Fri Jun 06, 2014 3:53 pm
- Has thanked: 184 times
- Been thanked: 203 times
- Contact:
Re: Using the ESP8266 examples
Hi Kersing
They are indeed, sorry for the confusion.
I am very pleased to say that I am able to change the expected response and the circuit ran without issue first time (and on a number of repeats too).
I set in component properties:-
ESP_CON_TO_SSID_CONFIRM = WIFI CONNECTED
ESP_CLIENT_CONNECTED = CONNECT
Many, many thanks for your help, it is very much appreciated.
Regards
They are indeed, sorry for the confusion.
I am very pleased to say that I am able to change the expected response and the circuit ran without issue first time (and on a number of repeats too).
I set in component properties:-
ESP_CON_TO_SSID_CONFIRM = WIFI CONNECTED
ESP_CLIENT_CONNECTED = CONNECT
Many, many thanks for your help, it is very much appreciated.
Regards
-
- Posts: 502
- Joined: Wed Nov 07, 2007 6:51 pm
- Location: Antwerp Belgium
- Has thanked: 121 times
- Been thanked: 108 times
- Contact:
Re: Using the ESP8266 examples
I'm using the Matrix-Wiki ESP8266 TCP-Client example and I got it working with only one problem....
It seems to connect to the Matrix website and I can see on my logic analyser that the content of the test-file is being transferred.
But, the strange thing is that after issuing the request for the text file, I see the data appear on my logic analyser, but, the LCD doesn't get erased and the "Done" is shown on my LCD.
In my opinion, if the TCP request is send the LCD should always get erased??
Strange because the "Done" at the end appears and the "Connecting.." is still on the display.
It seems to connect to the Matrix website and I can see on my logic analyser that the content of the test-file is being transferred.
But, the strange thing is that after issuing the request for the text file, I see the data appear on my logic analyser, but, the LCD doesn't get erased and the "Done" is shown on my LCD.
In my opinion, if the TCP request is send the LCD should always get erased??
Strange because the "Done" at the end appears and the "Connecting.." is still on the display.