I am porting a tool developped with Python from RPi2 to RPi3, it uses the /dev/ttyAMA0 port to communicate.
The problem is that in Raspberry 3 models, this is now used by the BlueTooth (no disabling it). The different RPis using the tool could be on Wheezy or Jessy, so no serial0 for me.
I need a simple method, like a command to compare hardware, or so, allowing the tool to know if it runs on RPi2 or 3.
Would some of you know any trick to achieve this ?
Thanks in advance.