Open pmknowles opened 1 year ago
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
Thanks, I hadn’t combined main.h and main.cpp which may be why it just gave me an output of Ticker. I’ll try that.
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows
From: Neil @.> Sent: 09 January 2023 06:39 To: @.> Cc: @.>; @.> Subject: Re: [neilsheps/Renogy-BT2-Reader] How to compile (Issue #1)
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)
`
Let me know if this isn't answering the question. I'm not quite sure what you mean otherwise
— Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fneilsheps%2FRenogy-BT2-Reader%2Fissues%2F1%23issuecomment-1375168980&data=05%7C01%7C%7C714731d6668c42d6bda308daf20c40e2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638088431684694836%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=QpTfHO5njMKEQSML87NULEE7NAmXcFokx3uDIoF7Qq4%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAI5KPM7KJHMNIIHLPESRCS3WROXB3ANCNFSM6AAAAAATT2GSTY&data=05%7C01%7C%7C714731d6668c42d6bda308daf20c40e2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638088431684694836%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Ky%2BEFNYyIW3IgyeC04ACVXqKwkTletdQ%2F94mZDE%2Fwkw%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>
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.