pi4j-v2 icon indicating copy to clipboard operation
pi4j-v2 copied to clipboard

Detect the platform (type of Raspberry Pi if applicable) Pi4J is executed on

Open dmfrey opened this issue 2 years ago • 9 comments

I'd like to create a Spring Boot Condition to detect if the code is running on a real pi. Does the Platform hierarchy allow you to detect what is present?

I'd like to do this so that RaspberryPi context doesn't automatically get registered when the platform is not found.

This will also help with testing when I can override with the MockContext.

dmfrey avatar Dec 06 '22 16:12 dmfrey