Go Down

Topic: ESP8266 SPI WiFi Shield ("nice to have") (Read 3257 times) previous topic - next topic

Juraj

You mean soft reset the module (what is the command via WiFiSpi) or hard reset (I must wire one output from arduino to the reset pin of the ESP module)?
reset is only to activate the WiFiManager in setup() of the firmware, so softReset() will do
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

bilekj

@gcampos: thanks for your contribution, I have just merged a slightly reworked code. The main problem I found was the permanently lid LED after connecting. I think it is unnecessary.

ameliaamelia

#47
Feb 08, 2019, 10:26 pm Last Edit: Feb 09, 2019, 12:30 am by ameliaamelia
I am trying the last release of WiFiESPSpi from GitHub with
//#define WIFIMANAGER_ENABLED
untouched.
The compiler shows same errors, not present in the previous release.
1-VisualMicro studio.
2-Arduino Due
3-Arduino IDE 1.8.9 2019/02/04


Compiling 'WiFiSpiESP' for 'NodeMCU 1.0 (ESP-12E Module)'
 
WiFiSpiESP.ino: 65:25: error: variable or field 'configModeCallback' declared void
   const char* PROTOCOL_VERSION = "0.2.0"
 
WiFiSpiESP.ino: 65:25: error: 'WiFiManager' was not declared in this scope
 
WiFiSpiESP.ino: 65:38: error: 'myWiFiManager' was not declared in this scope
   const char* PROTOCOL_VERSION = "0.2.0"
Error compiling project sources
Build failed for project 'WiFiSpiESP'


ameliaamelia

bilekj

Please check once more the file WiFiSPIEsp.ino. If you commented out the WIFIMANAGER_ENABLED define, there should be no wifimanager code needed.
I have correctly compiled the actual github version (master) for ESP8266 now.

ameliaamelia

#49
Feb 09, 2019, 10:04 am Last Edit: Feb 09, 2019, 10:06 am by ameliaamelia
Found.
Using the Arduino IDE directly, all goes fine.
It seems that Visual Micro does not manage
#ifdef
kindly.
I will continue to investigate.

ameliaamelia

ameliaamelia

... continue

The Visual Micro requires to have the WiFiManager installed and included;
it verifies the
configModeCallback (line 80)
anyway, not taking into account the presence of the negative directive
#ifdef WIFIMANAGER_ENABLED
...
#endif


With the
WifiManager.h
always included, OK.
It's an issue that concerns the Visual Micro Team.

ameliaamelia

bilekj

Try to change #ifdef xxxx to #if defined(xxxx), it may work.

ameliaamelia

#52
Feb 09, 2019, 02:33 pm Last Edit: Feb 09, 2019, 02:37 pm by ameliaamelia
The #if defined (...) does not work.
Please see the reply at:
https://www.visualmicro.com/forums/YaBB.pl?num=1549707860
The suggested temporary solution does work.
ameliaamelia

gcampos

reset is only to activate the WiFiManager in setup() of the firmware, so softReset() will do
Thanks!

gcampos

@gcampos: thanks for your contribution, I have just merged a slightly reworked code. The main problem I found was the permanently lid LED after connecting. I think it is unnecessary.
Thanks.


Go Up