Replies: 3 comments
-
It is your code issue which you should debug it yourself. |
Beta Was this translation helpful? Give feedback.
-
I think I need to be clearer, the problem is not in my code. My code is trivial, I didn't want to debug it, I put it just in case, but I didn't need to. Let's say there is a code, it contains byte definition, it works without any problem. Even if I add the line "#include <FirebaseClient.h>", and nothing else. All byte definitions give the error "reference to 'byte' is ambiguous". Let's say this is the code, which works fine obviously:
I just add "#include <FirebaseClient.h>":
Conclusion:
I need to use the "byte" type with several libraries, which prevents me from using FirebaseClient. I can't use uint8_t, the other libraries gives an error in this time. |
Beta Was this translation helpful? Give feedback.
-
As I wrote, you have to debug your code. It means you have to find the error in your code. You have to understand the compiler log too. The error in the compiler log is about the naming conflicts between This is not related to the library directly, but the Firebase library contains the unnecessary code of The library was updated by removing this But this can be the issue if you include any library or even your code as below that uses this statement #include <Arduino.h>
using namespace std;
const byte Avariable = 1;
byte AnotherVariable = 0;
void setup()
{
}
void loop()
{
}
I recommend you should avoid using byte in the ESP32 Arduino Core SDK v3.x.x because of C++17 the |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if this is a bug or if I didn't dope it. So I'm sorry if I opened a wrong ticket here.
I need to use FirebaseClient with Keypad.h and MRFC522. But since they use the byte to define, (like rows and cols for Keypad.h and "key.keyByte[i] = 0xFF;" for key at MRFC"). This is so weird, but when we import the new libraries, "FirebaseClient" and "ArduinoJson"; the keypad sections gives an error for bytes. When I change the bytes to uint8_t, I just get another type of error because Keypad.h is written to work with bytes for define.
Here's an example that just after I implemented FirebaseClient:
The part of where I use FirebaseClient:
Some example of usage "byte" in Keypad:
Beta Was this translation helpful? Give feedback.
All reactions