I am programming a ControlPanel App via C++. I can get the
DeviceIdof a controllee device (ControlPanelDevice) via
announceHandlerCallbackhas been triggered.
busNamein ControlPanelController when
But I can not get a DeviceId in ControlPanelDevice. My question is:
How to map the
Can I get ControlPanelController's
deviceIdin the same time?
I have a idea and already finished it for busName - deviceId mapping and managing of the controllee device. There are two new class which are BusIdMap and IdData for busName, deviceId, and ControlPanelDevice managing in my App.
My idea as the following:
Define a map object in global for busName and deviceId mapping at main code file:
std::map<string, MyDevContextClass> aliveControllee; //busName, MyDevContextObj
Manage this map obj in
main loopet al.
It works well in my ControlPanelController App, but it seems not a safety solution.
Does any AllJoyn framework API could help me to do busName - deviceId mapping and managing ??
My new question of this implement: