Hi
I have an issue with uploading to an ESP8266, I can upload the blink sketch ok and that works fine, but when I do anything to do with Wifi I get the error below :
It starts to upload but then errors :
Any ideas ?
Thanks in advance.
Potman100
I have an issue with uploading to an ESP8266, I can upload the blink sketch ok and that works fine, but when I do anything to do with Wifi I get the error below :
B4X:
ub Process_Globals
Public Serial1 As Serial
Private wifi As ESP8266WiFi
End Sub
Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
If Not(wifi.Connect2("MYSSID","MYPASSWORD")) Then
Log("Failed to connect to network!")
Return
End If
End Sub
It starts to upload but then errors :
B4X:
B4R Version: 2.51
Parsing code. (0.03s)
Compiling code. (0.17s)
Building project (0.03s)
Compiling & deploying Ino project (LOLIN(WEMOS) D1 R2 & mini - COM22) Error
Loading configuration...
Initialising packages...
Preparing boards...
Verifying...
In file included from C:\Vbcode\2019\B4R\Objects\bin\sketch\B4RDefines.h:25:0,
from C:\Vbcode\2019\B4R\Objects\bin\sketch\B4RArduino.cpp:1:
rESP8266WiFi.h:89: error: cannot declare field 'B4R::WiFiSocket::client' to be of abstract type 'B4R::BufferedWiFiClient'
BufferedWiFiClient client;
^
C:\Vbcode\2019\B4R\Objects\bin\sketch\rESP8266WiFi.h:56:8: note: because the following virtual functions are pure within 'B4R::BufferedWiFiClient':
class BufferedWiFiClient : public Client {
^
In file included from C:\Vbcode\2019\B4R\Objects\bin\sketch\B4RDefines.h:11:0,
from C:\Vbcode\2019\B4R\Objects\bin\sketch\B4RArduino.cpp:1:
C:\Users\Darren\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0\cores\esp8266/Client.h:29:21: note: virtual int Client::connect(const IPAddress&, uint16_t)
virtual int connect(CONST IPAddress& ip, uint16_t port) =0;
^
C:\Users\Darren\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0\cores\esp8266/Client.h:37:22: note: virtual bool Client::flush(unsigned int)
virtual bool flush(unsigned int maxWaitMs = 0) = 0;
^
C:\Users\Darren\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.0\cores\esp8266/Client.h:38:22: note: virtual bool Client::stop(unsigned int)
virtual bool stop(unsigned int maxWaitMs = 0) = 0;
^
In file included from C:\Vbcode\2019\B4R\Objects\bin\sketch\B4RDefines.h:25:0,
from C:\Vbcode\2019\B4R\Objects\bin\sketch\B4RArduino.cpp:1:
rESP8266WiFi.h:125: error: cannot declare field 'B4R::WiFiSSLSocket::client' to be of abstract type 'B4R::BufferedWiFiClient'
BufferedWiFiClient client;
^
C:\Vbcode\2019\B4R\Objects\bin\sketch\rESP8266WiFi.h:56:8: note: since type 'B4R::BufferedWiFiClient' has pure virtual functions
class BufferedWiFiClient : public Client {
^
exit status 1
Any ideas ?
Thanks in advance.
Potman100