Skip to content

Missing util/crc16.h from ModbusMaster.h #13

@jedi11csa

Description

@jedi11csa

Hello,

I have a Renogy Wanderer 10A Solar Charge Controller, which I'd love to get hooked up to an Xiao ESP32 S3.
Ultimately, I'd like to hook this all up and get Home Assistant integrated too. But for now, I'd like to just see the results you're getting.

What I've done thus far:

  • I have downloaded your project code and made a project in my Arduino IDE with it.
  • I've then read through the notes, and noted the line (19) address to https://github.com/syvic/ModbusMaster to download that repository code for the ModbusMaster.h file.
  • Copied the ModbusMaster.h file from that repository into my project folder.
  • Noticed in ModbusMaster.h there's an include file required I can't find anywhere.
  • Tried verifying the code, knowing it would fail... which it did.

The issue:
I noticed in ModbusMaster.h code, there's an #include <util/crc16.h> on line 83.
As stated above, I tried verifying the code, but get an Output error, which no surprises, Arduino IDE can't find a file or directory called util/crc16.h

The whole point of this...:
How can I get this util/crc16.h file? It isn't in the https://github.com/syvic/ModbusMaster repository.
Also, within this util/crc16.h file, for those who have it, are there any other includes within the file that I'll need too?

I suppose I could also raise an issue at https://github.com/syvic/ModbusMaster, but I'm assuming that people here have this code running and will have the missing util/crc16.h file I need anyway, hopefully ;)

Wondering if anyone can help me out here with the missing util/crc16.h file please? :)

Kind regards,
Chris

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