First I started by modelling the devices as objects. Starting with a single base class that has most of the common behaviour.
Object oriented programming has ruined us
Object oriented programming has ruined us
Thats why this is an issue
I liked the demonstration of this approach in Chapter 6 of Robert C. Martin’s Agile Software Development: Principles, Patterns and Practices. It’s available online here:
https://people.scs.carleton.ca/~jeanpier//Fall2021/Topic%201...