martin-ger / lwip_nat_arduino

lwip library with NAT feature for Arduino environment
59 stars 20 forks source link

Error compiling for board Generic ESP8266 Module. #7

Closed RoyvanEmpel closed 5 years ago

RoyvanEmpel commented 5 years ago

Hello,

I am trying to install the CaptiveHotspot on the ESP8266 but if i try to verify it i get the error:

exec: "make": executable file not found in %PATH% Error compiling for board Generic ESP8266 Module.

In the readme it says "Make sure that the 'make' command is installed in your environment" but i don't know how to do this. I have googled it but can't really find anything about it.

I hope somebody can tell me how to fix this.

martin-ger commented 5 years ago

You probably do this on Windows, right?

You will need a make for Windows, e.g.: https://stackoverflow.com/questions/32127524/how-to-install-and-use-make-in-windows/53228840

RoyvanEmpel commented 5 years ago

Yes i am tying to do this on a windows machine. and i looked at the stackoverflow that you send but when i try to download the GNUWin32 and got the make.exe from the /GNUWin32/bin/ and i tried to put it in the arduino directory but that doesn't work and now it is giving me this error: exit status -1073741515 but i can't really find anything about this :/.

PS: I am a real arduino noob and i am doing this for a school project.

martin-ger commented 5 years ago

Sorry, not an expert in that: I do all my compilations on Linux. I know, it can be done on Windows and people did it, but I have no experience in installing a make environment there.

guigui9 commented 5 years ago

Hello, my method works to compile on Windows : https://github.com/martin-ger/lwip_nat_arduino/issues/1

RoyvanEmpel commented 5 years ago

Hello, Thank you @guigui9 it did work for me and i got it compiled and uploaded to my esp8266.

Now i am having a problem with getting the code to work. I changed the sta_ssid to the name of my network and the sta_password to my wifi password. But when I upload it and look in my router it isn't connected. I also tried to start a hotspot, but also then it isn't connecting or starting its own AP.

Do you maybe know what could be this?

This is the upload log. (Or whatever its called)

Sketch uses 287396 bytes (32%) of program storage space. Maximum is 892912 bytes. Global variables use 28788 bytes (35%) of dynamic memory, leaving 53132 bytes for local variables. Maximum is 81920 bytes. esptool.py v2.6 Serial port COM6 Connecting.... Chip is ESP8266EX Features: WiFi MAC: a0:20:a6:1b:20:17 Uploading stub... Running stub... Stub running... Erasing region (may be slow depending on size)... Erase completed successfully in 0.2 seconds. Hard resetting via RTS pin... esptool.py v2.6 Serial port COM6 Connecting.... Chip is ESP8266EX Features: WiFi MAC: a0:20:a6:1b:20:17 Uploading stub... Running stub... Stub running... Configuring flash size... Auto-detected Flash size: 4MB Flash params set to 0x0040 Compressed 291552 bytes to 209066...

Writing at 0x00000000... (7 %) Writing at 0x00004000... (15 %) Writing at 0x00008000... (23 %) Writing at 0x0000c000... (30 %) Writing at 0x00010000... (38 %) Writing at 0x00014000... (46 %) Writing at 0x00018000... (53 %) Writing at 0x0001c000... (61 %) Writing at 0x00020000... (69 %) Writing at 0x00024000... (76 %) Writing at 0x00028000... (84 %) Writing at 0x0002c000... (92 %) Writing at 0x00030000... (100 %) Wrote 291552 bytes (209066 compressed) at 0x00000000 in 18.4 seconds (effective 126.8 kbit/s)... Hash of data verified.

Leaving...

Hard resetting via RTS pin...

martin-ger commented 5 years ago

Do you see anything on the serial output? Should be some info here...

RoyvanEmpel commented 5 years ago

It is doing this and keeps making those dots. :/

image

martin-ger commented 5 years ago

Mhhh... for some reason it doesn't get a connection to the uplink AP. Are you sure my_ssid and my_password are correct? It works for other Arduino samples?

RoyvanEmpel commented 5 years ago

the esp fully works for other project like just creating a AP and running a local webserver on that ap. I am going to just try it on another hotspot who knows what will happen.

RoyvanEmpel commented 5 years ago

I am going to try to upload some old code i know is working.

RoyvanEmpel commented 5 years ago

So i just uploaded some older code which creates an access point without any problems :/

martin-ger commented 5 years ago

Creating the AP is not the problem. The program hangs when it tries to connect to the uplink AP as STA in line 217-220. AP creation is done afterwards...

guigui9 commented 5 years ago

Hello, I had connection failures. But the Wifi password must not be less than 8 characters. Another option allowed me to correct some program errors, menu : Tools / Erase Flash: "All Flash Contents"

RoyvanEmpel commented 5 years ago

Hmm I see.

Changing the Erase Flash to "All Flash Contents" Doesn't change anything and i am still getting the same problem.

So this is the full code currently (at least in the captivehotspot.ino) I don't know if i accedentally broke something.

https://pastebin.com/raw/tiG8qqUF

martin-ger commented 5 years ago

With the correct credentials the program runs absolutely fine for me.

Is your uplink AP really "SlechtWifi"/"wachtwoord"? This is not the setting for the ESP-AP...

RoyvanEmpel commented 5 years ago

so with uplink AP you mean my hotspot/wifi right?

RoyvanEmpel commented 5 years ago

image

martin-ger commented 5 years ago

Yes, your wifi. Other programs can connect?

RoyvanEmpel commented 5 years ago

I can connect with my phone yes but its also not working on my home network or my mobile phone hotspot.

Do i maybe have a setting wrong?

image

martin-ger commented 5 years ago

I don't see any issue there.

When you try to compile the "ESP8266WiFi/WiFiClient" example - does this work?

RoyvanEmpel commented 5 years ago

Well I am getting the same result :/ So its not a problem with the code :/

image

guigui9 commented 5 years ago

Your Internet box may be using WPS mode with mac address filtering.

martin-ger commented 5 years ago

Some issue with you WiFi? Can you try another one. E.g. your Smartphone as hotspot?

RoyvanEmpel commented 5 years ago

So i have tried it on my mobile hotspot from my phone, my laptop hotspot and my normal wifi router i really have no clue what it could be but none of them are working.

Tomorrow i will try the script on the ESP of a friend of me and if that doesn't work i really don't know :/

RoyvanEmpel commented 5 years ago

@martin-ger After trying on the ESP of my friend and tried it on the hotspot of my friend but i can't get it to work it just keeps printing the dots

martin-ger commented 5 years ago

Even when you use the standard example? No idea...

guigui9 commented 5 years ago

It may not change anything, but my program works fine with the settings : Flash Mode: "DOUT (compatible)" Crystal Frequency: "26 MHz"

RoyvanEmpel commented 5 years ago

Sorry for not reacting for a few day's. I have tried the settings with the flash mode and the crystal frequency and it just started working :) thanks for helping

martin-ger commented 5 years ago

Good to read! :-)

JayantBenjamin commented 4 years ago

Hello, Thank you @guigui9 it did work for me and i got it compiled and uploaded to my esp8266.

Now i am having a problem with getting the code to work. I changed the sta_ssid to the name of my network and the sta_password to my wifi password. But when I upload it and look in my router it isn't connected. I also tried to start a hotspot, but also then it isn't connecting or starting its own AP.

Do you maybe know what could be this?

This is the upload log. (Or whatever its called)

Sketch uses 287396 bytes (32%) of program storage space. Maximum is 892912 bytes. Global variables use 28788 bytes (35%) of dynamic memory, leaving 53132 bytes for local variables. Maximum is 81920 bytes. esptool.py v2.6 Serial port COM6 Connecting.... Chip is ESP8266EX Features: WiFi MAC: a0:20:a6:1b:20:17 Uploading stub... Running stub... Stub running... Erasing region (may be slow depending on size)... Erase completed successfully in 0.2 seconds. Hard resetting via RTS pin... esptool.py v2.6 Serial port COM6 Connecting.... Chip is ESP8266EX Features: WiFi MAC: a0:20:a6:1b:20:17 Uploading stub... Running stub... Stub running... Configuring flash size... Auto-detected Flash size: 4MB Flash params set to 0x0040 Compressed 291552 bytes to 209066...

Writing at 0x00000000... (7 %) Writing at 0x00004000... (15 %) Writing at 0x00008000... (23 %) Writing at 0x0000c000... (30 %) Writing at 0x00010000... (38 %) Writing at 0x00014000... (46 %) Writing at 0x00018000... (53 %) Writing at 0x0001c000... (61 %) Writing at 0x00020000... (69 %) Writing at 0x00024000... (76 %) Writing at 0x00028000... (84 %) Writing at 0x0002c000... (92 %) Writing at 0x00030000... (100 %) Wrote 291552 bytes (209066 compressed) at 0x00000000 in 18.4 seconds (effective 126.8 kbit/s)... Hash of data verified.

Leaving...

Hard resetting via RTS pin...

Hi! How did you solve the "make" problem? Error says exec: "make"; executable file not found in %PATH% Another error I'm getting is "Multiple Libraries Found "

vienbu commented 3 years ago

Hello every guy, i'm newbie and i make this error, i don't resolve, can any one help me, please? Arduino: 1.8.15 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200" C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\Firebase.cpp: In member function 'int FirebaseRequest::sendRequest(const string&, const string&, char*, const string&, const string&)':

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\Firebase.cpp:78:1: warning: no return statement in function returning non-void [-Wreturn-type]

78 | }

  | ^

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\Firebase.cpp: In member function 'void FirebaseStream::startStreaming(const string&, const string&, const string&)':

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\Firebase.cpp:91:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

91 | analyzeError("STREAM", status, path_with_auth);

  |                ^~~~~~~~

In file included from C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseCloudMessaging.cpp:1:

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseCloudMessaging.h:82:3: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]

82 | const void AddToJson(const FirebaseCloudMessage& message, JsonObject& json) const;

  |   ^~~~~

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp: In member function 'String FirebaseArduino::push(const String&, const ArduinoJson::JsonVariant&)':

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp:65:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

65 | int status = req.get()->sendRequest(host, auth_, "POST", path.c_str(), buf);

  |                                                      ^~~~~~

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp:65:7: warning: unused variable 'status' [-Wunused-variable]

65 | int status = req.get()->sendRequest(host, auth_, "POST", path.c_str(), buf);

  |       ^~~~~~

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp: In member function 'void FirebaseArduino::set(const String&, const ArduinoJson::JsonVariant&)':

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp:94:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

94 | req.get()->sendRequest(host, auth_, "PUT", path.c_str(), buf);

  |                                         ^~~~~

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp: In member function 'void FirebaseArduino::getRequest(const String&)':

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp:101:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

101 | req.get()->sendRequest(host, auth_, "GET", path.c_str());

  |                                         ^~~~~

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp: In member function 'virtual void FirebaseArduino::remove(const String&)':

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp:147:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

147 | req.get()->sendRequest(host, auth_, "DELETE", path.c_str());

  |                                         ^~~~~~~~

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp: In member function 'virtual const String& FirebaseArduino::error()':

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp:201:32: warning: returning reference to temporary [-Wreturn-local-addr]

201 | return error_.message().c_str();

  |          ~~~~~~~~~~~~~~~~~~~~~~^~

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseCloudMessaging.cpp:79:1: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]

79 | const void FirebaseCloudMessaging::AddToJson(

  | ^~~~~

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp: In member function 'virtual void FirebaseHttpClientEsp8266::begin(const string&)':

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:47:50: error: no matching function for call to 'begin(const char*, const char [60])'

47 | http_.begin(url.c_str(), kFirebaseFingerprint);

  |                                                  ^

In file included from C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:9:

C:\Users\vienp\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\libraries\ESP8266HTTPClient\src/ESP8266HTTPClient.h:166:10: note: candidate: 'bool HTTPClient::begin(String, uint16_t, String)' (near match)

166 | bool begin(String host, uint16_t port, String uri = "/") attribute ((error("obsolete API, use ::begin(WiFiClient, host, port, uri)")));

  |          ^~~~~

C:\Users\vienp\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\libraries\ESP8266HTTPClient\src/ESP8266HTTPClient.h:166:10: note: conversion of argument 2 would be ill-formed:

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:47:30: error: invalid conversion from 'const char*' to 'uint16_t' {aka 'short unsigned int'} [-fpermissive]

47 | http_.begin(url.c_str(), kFirebaseFingerprint);

  |                              ^~~~~~~~~~~~~~~~~~~~

  |                              |

  |                              const char*

In file included from C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:9:

C:\Users\vienp\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\libraries\ESP8266HTTPClient\src/ESP8266HTTPClient.h:167:10: note: candidate: 'bool HTTPClient::begin(String, const uint8_t*)' (near match)

167 | bool begin(String url, const uint8_t httpsFingerprint[20]) attribute ((error("obsolete API, use ::begin(WiFiClientSecure, ...)")));

  |          ^~~~~

C:\Users\vienp\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\libraries\ESP8266HTTPClient\src/ESP8266HTTPClient.h:167:10: note: conversion of argument 2 would be ill-formed:

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:47:30: error: invalid conversion from 'const char' to 'const uint8_t' {aka 'const unsigned char*'} [-fpermissive]

47 | http_.begin(url.c_str(), kFirebaseFingerprint);

  |                              ^~~~~~~~~~~~~~~~~~~~

  |                              |

  |                              const char*

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp: In member function 'virtual void FirebaseHttpClientEsp8266::begin(const string&, const string&)':

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:51:60: error: invalid conversion from 'const char' to 'const uint8_t' {aka 'const unsigned char*'} [-fpermissive]

51 | http_.begin(host.c_str(), kFirebasePort, path.c_str(), kFirebaseFingerprint);

  |                                                            ^~~~~~~~~~~~~~~~~~~~

  |                                                            |

  |                                                            const char*

In file included from C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:9:

C:\Users\vienp\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\libraries\ESP8266HTTPClient\src/ESP8266HTTPClient.h:168:70: note: initializing argument 4 of 'bool HTTPClient::begin(String, uint16_t, String, const uint8_t*)'

168 | bool begin(String host, uint16_t port, String uri, const uint8_t httpsFingerprint[20]) attribute ((error("obsolete API, use ::begin(WiFiClientSecure, ...)")));

  |                                                        ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseObject.cpp: In member function 'bool FirebaseObject::isNullString(const String&) const':

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseObject.cpp:71:57: warning: 'const char ArduinoJson::Internals::JsonVariantCasts::asString() const [with TImpl = ArduinoJson::JsonVariant]' is deprecated: use as<char>() instead [-Wdeprecated-declarations]

71 | return variant.is<const char *>() && variant.asString() == NULL;

  |                                                         ^

In file included from C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseObject.h:24,

             from C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseObject.cpp:17:

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src/ArduinoJson.h:250:28: note: declared here

250 | FORCE_INLINE const char *asString() const {

  |                            ^~~~~~~~

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseObject.cpp: In member function 'ArduinoJson::JsonVariant FirebaseObject::getJsonVariant(const String&) const':

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseObject.cpp:91:26: warning: 'ArduinoJson::JsonObject& ArduinoJson::Internals::JsonVariantCasts::asObject() const [with TImpl = ArduinoJson::JsonVariant]' is deprecated: use as() instead [-Wdeprecated-declarations]

91 | json = json.asObject().get(start);

  |                          ^

In file included from C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseObject.h:24,

             from C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseObject.cpp:17:

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src/ArduinoJson.h:246:28: note: declared here

246 | FORCE_INLINE JsonObject &asObject() const {

  |                            ^~~~~~~~

exit status 1

Error compiling for board NodeMCU 1.0 (ESP-12E Module).

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

martin-ger commented 3 years ago

You don’t need this lib any more:

since release 2.6.0 NAPT/NAT is part of the standard distribution. See also this example: https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/examples/RangeExtender-NAPT/RangeExtender-NAPT.ino https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/examples/RangeExtender-NAPT/RangeExtender-NAPT.ino ***

Von: vienbu @.*** Gesendet: Mittwoch, 19. Mai 2021 16:57 An: martin-ger/lwip_nat_arduino Cc: martin-ger; State change Betreff: Re: [martin-ger/lwip_nat_arduino] Error compiling for board Generic ESP8266 Module. (#7)

Hello every guy, i'm newbie and i make this error, i don't resolve, can any one help me, please? Arduino: 1.8.15 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200" C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\Firebase.cpp: In member function 'int FirebaseRequest::sendRequest(const string&, const string&, char*, const string&, const string&)':

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\Firebase.cpp:78:1: warning: no return statement in function returning non-void [-Wreturn-type]

78 | }

| ^

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\Firebase.cpp: In member function 'void FirebaseStream::startStreaming(const string&, const string&, const string&)':

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\Firebase.cpp:91:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

91 | analyzeError("STREAM", status, path_with_auth);

| ^~~~

In file included from C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseCloudMessaging.cpp:1:

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseCloudMessaging.h:82:3: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]

82 | const void AddToJson(const FirebaseCloudMessage& message, JsonObject& json) const;

| ^~~~~

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp: In member function 'String FirebaseArduino::push(const String&, const ArduinoJson::JsonVariant&)':

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp:65:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

65 | int status = req.get()->sendRequest(host, auth_, "POST", path.c_str(), buf);

| ^~

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp:65:7: warning: unused variable 'status' [-Wunused-variable]

65 | int status = req.get()->sendRequest(host, auth_, "POST", path.c_str(), buf);

| ^~

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp: In member function 'void FirebaseArduino::set(const String&, const ArduinoJson::JsonVariant&)':

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp:94:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

94 | req.get()->sendRequest(host, auth_, "PUT", path.c_str(), buf);

| ^~~~~

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp: In member function 'void FirebaseArduino::getRequest(const String&)':

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp:101:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

101 | req.get()->sendRequest(host, auth_, "GET", path.c_str());

| ^~~~~

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp: In member function 'virtual void FirebaseArduino::remove(const String&)':

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp:147:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

147 | req.get()->sendRequest(host, auth_, "DELETE", path.c_str());

| ^~~~

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp: In member function 'virtual const String& FirebaseArduino::error()':

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseArduino.cpp:201:32: warning: returning reference to temporary [-Wreturn-local-addr]

201 | return error_.message().c_str();

| ~~~~~~^~

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseCloudMessaging.cpp:79:1: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]

79 | const void FirebaseCloudMessaging::AddToJson(

| ^~~~~

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp: In member function 'virtual void FirebaseHttpClientEsp8266::begin(const string&)':

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:47:50: error: no matching function for call to 'begin(const char*, const char [60])'

47 | http_.begin(url.c_str(), kFirebaseFingerprint);

| ^

In file included from C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:9:

C:\Users\vienp\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\libraries\ESP8266HTTPClient\src/ESP8266HTTPClient.h:166:10: note: candidate: 'bool HTTPClient::begin(String, uint16_t, String)' (near match)

166 | bool begin(String host, uint16_t port, String uri = "/") attribute ((error("obsolete API, use ::begin(WiFiClient, host, port, uri)")));

| ^~~~~

C:\Users\vienp\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\libraries\ESP8266HTTPClient\src/ESP8266HTTPClient.h:166:10: note: conversion of argument 2 would be ill-formed:

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:47:30: error: invalid conversion from 'const char*' to 'uint16_t' {aka 'short unsigned int'} [-fpermissive]

47 | http_.begin(url.c_str(), kFirebaseFingerprint);

| ^~~~~~~~

| |

| const char*

In file included from C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:9:

C:\Users\vienp\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\libraries\ESP8266HTTPClient\src/ESP8266HTTPClient.h:167:10: note: candidate: 'bool HTTPClient::begin(String, const uint8_t*)' (near match)

167 | bool begin(String url, const uint8_t httpsFingerprint[20]) attribute ((error("obsolete API, use ::begin(WiFiClientSecure, ...)")));

| ^~~~~

C:\Users\vienp\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\libraries\ESP8266HTTPClient\src/ESP8266HTTPClient.h:167:10: note: conversion of argument 2 would be ill-formed:

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:47:30: error: invalid conversion from 'const char' to 'const uint8_t' {aka 'const unsigned char*'} [-fpermissive]

47 | http_.begin(url.c_str(), kFirebaseFingerprint);

| ^~~~~~~~

| |

| const char*

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp: In member function 'virtual void FirebaseHttpClientEsp8266::begin(const string&, const string&)':

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:51:60: error: invalid conversion from 'const char' to 'const uint8_t' {aka 'const unsigned char*'} [-fpermissive]

51 | http_.begin(host.c_str(), kFirebasePort, path.c_str(), kFirebaseFingerprint);

| ^~~~~~~~

| |

| const char*

In file included from C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseHttpClient_Esp8266.cpp:9:

C:\Users\vienp\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0\libraries\ESP8266HTTPClient\src/ESP8266HTTPClient.h:168:70: note: initializing argument 4 of 'bool HTTPClient::begin(String, uint16_t, String, const uint8_t*)'

168 | bool begin(String host, uint16_t port, String uri, const uint8_t httpsFingerprint[20]) attribute ((error("obsolete API, use ::begin(WiFiClientSecure, ...)")));

| ~~~~^~~~~~

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseObject.cpp: In member function 'bool FirebaseObject::isNullString(const String&) const':

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseObject.cpp:71:57: warning: 'const char ArduinoJson::Internals::JsonVariantCasts::asString() const [with TImpl = ArduinoJson::JsonVariant]' is deprecated: use as<char>() instead [-Wdeprecated-declarations]

71 | return variant.is<const char *>() && variant.asString() == NULL;

| ^

In file included from C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseObject.h:24,

         from C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseObject.cpp:17:

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src/ArduinoJson.h:250:28: note: declared here

250 | FORCE_INLINE const char *asString() const {

| ^~~~

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseObject.cpp: In member function 'ArduinoJson::JsonVariant FirebaseObject::getJsonVariant(const String&) const':

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseObject.cpp:91:26: warning: 'ArduinoJson::JsonObject& ArduinoJson::Internals::JsonVariantCasts::asObject() const [with TImpl = ArduinoJson::JsonVariant]' is deprecated: use as() instead [-Wdeprecated-declarations]

91 | json = json.asObject().get(start);

| ^

In file included from C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseObject.h:24,

         from C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src\FirebaseObject.cpp:17:

C:\Users\vienp\OneDrive\Documents\Arduino\libraries\firebase-arduino-master\src/ArduinoJson.h:246:28: note: declared here

246 | FORCE_INLINE JsonObject &asObject() const {

| ^~~~

exit status 1

Error compiling for board NodeMCU 1.0 (ESP-12E Module).

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/martin-ger/lwip_nat_arduino/issues/7#issuecomment-844186306 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AF2UTCZQMYMKCCF4VVKF2U3TOPGTXANCNFSM4HTTUTCA . https://github.com/notifications/beacon/AF2UTC4EFLG7JP2753G7AL3TOPGTXA5CNFSM4HTTUTCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGJIUFQQ.gif

vienbu commented 3 years ago

@martin-ger i want to connect with firebase realtime, if i don't add the lib firebase, i can't send data from sensor to firebase realtime, so what do I have to do? Sr @martin-ger because I'm new, I lack understanding of IDE , plz forgive me for my shortcomings :))