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
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