Replies: 3 comments 6 replies
-
I have the same issue, did you manage to fix it? |
Beta Was this translation helpful? Give feedback.
-
Hi guys. We have seen issues when using fat jars, i.e. all the projects dependencies are extracted in to the projects own jar. If this is the case with you, then i am currently sad to say that that won't work. The pi4j-v2 uses a automatic lookup service for the providers and after the creation of a fat jar, the service files defining these providers is reduced to one, as they have the same name. Can you please modify your project to copy the dependencies into a sub folder, e.g. lib/ and then reference those in the class/module path? |
Beta Was this translation helpful? Give feedback.
-
Hello there, I’m trying to read a moisture sensor the purpuse is to have a percentage measure. I’ve read a lot of topic on PI4J but I still don’t understand how I can do this. I read earlier: "The PiGPIO plugin is a set of I/O providers for just about every supported I/O type with the exception of analog inputs and outputs." Does this mean that my sensor can only be used with the digital provider ? I tried many things with AnalogInputConfigBuilder but I always get: ProviderNotFoundException: Pi4J provider IO type [ANALOG_INPUT] could not be found. Also, I noticed at the execution that there is no analog provider: is there any solution to get an analogical value from a moisture sensor with PI4J ? Or did someone manage to make this example work : Edit: |
Beta Was this translation helpful? Give feedback.
-
I have problem creating analog and digital input. Every time i see error
Exception in thread "Thread-0" com.pi4j.provider.exception.ProviderNotFoundException: Pi4J provider [pigpio-digital-input] could not be found. Please include this 'provider' JAR in the classpath.
at com.pi4j.provider.impl.DefaultRuntimeProviders.get(DefaultRuntimeProviders.java:238)
at com.pi4j.provider.impl.DefaultProviders.get(DefaultProviders.java:147)
at com.pi4j.context.Context.provider(Context.java:240)
at If.ifs(If.java:19)
at Main.run(Main.java:12)
What's going on? Anyone can help?
Beta Was this translation helpful? Give feedback.
All reactions