I'm making great progress on my Automatic ODB-II plugin for Indigo, but I have an architecture question that I need help with.
I think things are probably pretty straightforward if I only had one Automatic ODB device - but I have two.
I currently have my plugin set up in Indigo such that I have created a single Automatic ODB device. That single device is responsible for receiving all updates from all Automatic ODB devices. I can create Triggger events that cam e e specific to one Vehicle, but I think I would prefer to create two (three) separate "devices" within Indigo.
The problem is, I should only have one web socket listener, and as it receives messages, it should signal the appropriate vehicle-based device, where Triggers can fire based on events received for a specific vehicle.
How do I set things up such that I would create one main "Automatic ODB" device, and then two separate Vehicle-Specific Automatic ODB device?