Skip to content

Multiple NMEA2000 Instances #457

@ocean-display

Description

@ocean-display

Hello,

The program I am writing needs to receive NMEA2000 PGNs in one can bus interface and send them on another. I cannot find an example on how to do multiple instances of a tNMEA2000. I'd like to use NMEA2000_CAN.h so that it correctly configures the instances for me. The only idea I can come up with is to #define NMEA2000 to a different name, so that the name gets overridden when new creates the new instance. Is there another easier or more correct way?

Thanks,
Ernesto

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions