Reputation: 880
I have developed a library for arduino and it is working fine. It consists of two files i.e. .h and .cpp. Is it possible to hide my code or convert it to format like dll so it is unreadable? I m looking to hide my library code. Thanks
Upvotes: 1
Views: 916
Reputation: 1093
This is only possible for Arduino IDE 1.8.6 and above.
You will have to set the precompiled flag in your library to true, and then point to statically compiled library of your code.
Link for library definitions for Arduino. https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#libraryproperties-file-format
Link on how to compile a static library. https://www.nongnu.org/avr-libc/user-manual/library.html
Link of Arduino Github discussion regarding the same https://github.com/arduino/Arduino/issues/4336#issuecomment-444267394
Upvotes: 1