The previous approach was checking system id and component id but it will not work in 100% of cases as external devices can send MAVLink message with the right system id but with broadcast component id.
Just to make sure we don't lose any messages.