Hi every one.
I have tried for some time now to get the esp8266at to work but it wont compile.
I get a lot of errors. I have tried to figure this out by editing the ThingerESP8266AT.h file and some of the files in the tinyGSM library but i only made it worse.
This is the original errors i got with the library’s freshly installed:
In file included from C:\Users\mrg\Documents\Arduino\libraries\arduino_796449\examples\ESP8266\ESP8266AT\ESP8266AT.ino:6:0:
C:\Users\mrg\Documents\Arduino\libraries\arduino_796449\src/ThingerESP8266AT.h:67:5: error: ‘TinyGsm’ does not name a type
TinyGsm serial_;
^
C:\Users\mrg\Documents\Arduino\libraries\arduino_796449\src/ThingerESP8266AT.h:68:5: error: ‘TinyGsm’ does not name a type
TinyGsm::GsmClient client_;
^
C:\Users\mrg\Documents\Arduino\libraries\arduino_796449\src/ThingerESP8266AT.h: In constructor ‘ThingerESP8266AT::ThingerESP8266AT(const char*, const char*, const char*, Stream&)’:
C:\Users\mrg\Documents\Arduino\libraries\arduino_796449\src/ThingerESP8266AT.h:33:13: error: class ‘ThingerESP8266AT’ does not have any field named ‘serial_’
serial_(serial),
^
In file included from C:\Users\mrg\Documents\Arduino\libraries\arduino_796449\src/ThingerESP8266AT.h:27:0,
from C:\Users\mrg\Documents\Arduino\libraries\arduino_796449\examples\ESP8266\ESP8266AT\ESP8266AT.ino:6:
C:\Users\mrg\Documents\Arduino\libraries\arduino_796449\src/ThingerClient.h:413:13: error: ‘Client& ThingerClient::client_’ is private
Client& client_;
^
In file included from C:\Users\mrg\Documents\Arduino\libraries\arduino_796449\examples\ESP8266\ESP8266AT\ESP8266AT.ino:6:0:
C:\Users\mrg\Documents\Arduino\libraries\arduino_796449\src/ThingerESP8266AT.h:34:13: error: within this context
client_(serial_),
^
C:\Users\mrg\Documents\Arduino\libraries\arduino_796449\src/ThingerESP8266AT.h:34:13: error: class ‘ThingerESP8266AT’ does not have any field named ‘client_’
C:\Users\mrg\Documents\Arduino\libraries\arduino_796449\src/ThingerESP8266AT.h:34:21: error: ‘serial_’ was not declared in this scope
client_(serial_),
^
In file included from C:\Users\mrg\Documents\Arduino\libraries\arduino_796449\src/ThingerESP8266AT.h:27:0,
from C:\Users\mrg\Documents\Arduino\libraries\arduino_796449\examples\ESP8266\ESP8266AT\ESP8266AT.ino:6:
C:\Users\mrg\Documents\Arduino\libraries\arduino_796449\src/ThingerClient.h:413:13: error: ‘Client& ThingerClient::client_’ is private
Client& client_;
^
In file included from C:\Users\mrg\Documents\Arduino\libraries\arduino_796449\examples\ESP8266\ESP8266AT\ESP8266AT.ino:6:0:
C:\Users\mrg\Documents\Arduino\libraries\arduino_796449\src/ThingerESP8266AT.h:37:27: error: within this context
ThingerClient(client_, user, device, device_credential)
^
C:\Users\mrg\Documents\Arduino\libraries\arduino_796449\src/ThingerESP8266AT.h: In member function ‘virtual bool ThingerESP8266AT::network_connected()’:
C:\Users\mrg\Documents\Arduino\libraries\arduino_796449\src/ThingerESP8266AT.h:47:16: error: ‘serial_’ was not declared in this scope
return serial_.isNetworkConnected();
^
C:\Users\mrg\Documents\Arduino\libraries\arduino_796449\src/ThingerESP8266AT.h: In member function ‘virtual bool ThingerESP8266AT::connect_network()’:
C:\Users\mrg\Documents\Arduino\libraries\arduino_796449\src/ThingerESP8266AT.h:51:16: error: ‘serial_’ was not declared in this scope
return serial_.networkConnect(wifi_ssid_, wifi_password_);
^
Please help me
I have been using Arduino Uno with sim808 connected to thinger for some time now and i’m super happy about how it works. But I wont to connect some thing at home as well so i hope someone want to help me with this esp8266 issue.
Thanks