neilsheps / Renogy-BT2-Reader

Arduino library to interrogate Renogy devices using BT2 dongle over bluetooth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to compile

pmknowles opened this issue · comments

I'm very interested in this as an Arduino alternative to Renogy-BT1 but it's not really clear how to use the library. main.cpp seems to contain the extra details from the readme but the link to the Adafruit library is to an ino which doesn't have all the sections that you talk about.

I'd be grateful for any further help you can give.

Hi -- I'm not quite sure what you mean here. I don't have any .ino files (I prefer to use more traditional .h header files, although it should work either way). Iif you want to compile this library in an arduino environment it needs to have this kind of structure, which is basically the same as this Github repo:

/projectroot
/lib
/BT2Reader
--keywords.txt
--library.properties
/src
--BT2PrintFunctions.cpp
--BT2Reader.cpp
--BT2Reader.h
--BT2Utils.cpp
/src
--main.h
--main.cpp (as I have them today)

OR

--myproject.ino (you'd need to combine the code in main.h and main.cpp, which should be straightforward)
`

If your folder structure looks like the above it should compile fine. Let me know if this isn't answering the question. I'm not quite sure what you mean otherwise