pi4j-v2
pi4j-v2 copied to clipboard
Detect the platform (type of Raspberry Pi if applicable) Pi4J is executed on
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.