Closed Rallymen007 closed 7 years ago
By mistake I made a second push on the same branch.
It contains a bit of logging inside loadResource. This log line would show an error message if liblockdev is missing, and then rethrow the exception to signal higher level code. The log is the standard Linux load error:
/tmp/libNRJavaSerial_HF_osmc_0/libNRJavaSerial_HF.so: liblockdev.so.1: cannot open shared object file: No such file or directory
So maybe it's a good idea to log this to show the user some feedback, in case the library is loaded outside of a system package.
cool, thanks for this!
Quick addition to ease the use of this library on RPi projects. This just convenience to avoid having to set the property on every launch, and has been successfully tested with the openHAB aleoncean binding.