You can find the source code for this sample by downloading a zip of all of our samples here and navigating to the
samples-develop\AllJoyn\Samples\MockAdapter. The sample code is available in C++. Make a copy of the folder on your disk and open the project from Visual Studio.
This tutorial demonstrates the function of the AllJoyn Device System Bridge (DSB) in exposing and controlling mock devices.
samples-develop\AllJoyn\Samples\MockAdapter\MockAdapter.slnin Visual Studio.
We will use the IoT Explorer for AllJoyn to navigate the devices, objects and interfaces.
Launch IoT Explorer for AllJoyn app. The app should find the following four devices:
Select the Mock BACnet Switch object.
Select the Mock_BACnet_Switch object.
The interface view of the Mock_BACnet_Switch object lists several interfaces. Most of them are default AllJoyn interfaces such as the Introspectable interface. Select the com.microsft.DSBMockAdapter.MockBACnetSwitch.MainInter… interface.
Select the DeviceReset Method.
In the method input arguments section, type “reset” and press “Invoke”. Status OK should be displayed.
Your session has expired. Please sign-in again to continue. Unfortunately any unsaved changes will be lost.