-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conflicting Declaration with tNMEA2000_esp32 NMEA2000; #26
Comments
I found more information from the error in the build output:
So I don't need to declare the main object? |
if you use |
Do I still use #include <NMEA2000_esp32.h>? |
No. When you use #include <NMEA2000_CAN.h>, it includes necessary driver, if it can. If it can not then you do not #include <NMEA2000_CAN.h> and you have to explicitely include driver and define NMEA2000 object. |
Thanks... good to know. Is this documented somewhere? I read everything
I could find before posting here.
…On Fri, Jun 7, 2024, 12:54 AM Timo Lappalainen ***@***.***> wrote:
No. When you use #include <NMEA2000_CAN.h>, it includes necessary driver,
if it can. If it can not then you do not #include <NMEA2000_CAN.h> and you
have to explicitely include driver and define NMEA2000 object.
—
Reply to this email directly, view it on GitHub
<#26 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA2MD75BIJ6AJGXO6C5OUJ3ZGE4IFAVCNFSM6AAAAABI5TT436VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJTHE4DGOBRHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Actually, I found it in the main document under:
NMEA2000_CAN.h File Reference
…On Fri, Jun 7, 2024 at 11:34 AM Al Testani ***@***.***> wrote:
Thanks... good to know. Is this documented somewhere? I read everything
I could find before posting here.
On Fri, Jun 7, 2024, 12:54 AM Timo Lappalainen ***@***.***>
wrote:
> No. When you use #include <NMEA2000_CAN.h>, it includes necessary driver,
> if it can. If it can not then you do not #include <NMEA2000_CAN.h> and you
> have to explicitely include driver and define NMEA2000 object.
>
> —
> Reply to this email directly, view it on GitHub
> <#26 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AA2MD75BIJ6AJGXO6C5OUJ3ZGE4IFAVCNFSM6AAAAABI5TT436VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJTHE4DGOBRHA>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
I am porting a Teensy3.2 NMEA2000 application to ESP32. I'm using PlatformIO and an ESP32-WROOM-32E.
platformio.ini is:
The start of the code looks like this:
The last line is giving a conflicting declaration error. I have searched throughout the code several times and cannot find why this is happening. Also, I have been unable to find a documented example for use of these libraries on an ESP32. Any advice?
Thanks
The text was updated successfully, but these errors were encountered: