How to use the openweave.WeaveDeviceMgr.SystemTest_ProductList function in openweave

To help you get started, we’ve selected a few openweave examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github openweave / openweave-core / src / test-apps / happy / lib / WeaveDeviceManager.py View on Github external
print "Connection monitor enabled"

    print ''
    print '#################################disable-connection-monitor#################################'
    try:
        devMgr.DisableConnectionMonitor()
    except WeaveDeviceMgr.DeviceManagerException, ex:
        print str(ex)
        exit()

    print "Connection monitor disabled"

    print ''
    print '#################################start-system-test#################################'
    try:
        devMgr.StartSystemTest(WeaveDeviceMgr.SystemTest_ProductList["thermostat"], 1)
    except WeaveDeviceMgr.DeviceManagerException, ex:
        print str(ex)
        exit()

    print "Start system test complete"
    print ''
    print '#################################stop-system-test#################################'
    try:
        devMgr.StopSystemTest()
    except WeaveDeviceMgr.DeviceManagerException, ex:
        print str(ex)
        exit()

    print "Stop system test complete"

    print ''
github openweave / openweave-core / src / device-manager / python / weave-device-mgr.py View on Github external
if (len(args) != 2):
            print "Usage:"
            self.do_help('start-system-test')
            return

        productName = args[0]
        testId = int(args[1])

        if productName not in WeaveDeviceMgr.SystemTest_ProductList.keys():
            print "Unknown product for system tests: %s" % productName
            print "Usage:"
            self.do_help('start-system-test')
            return

        try:
            self.devMgr.StartSystemTest(WeaveDeviceMgr.SystemTest_ProductList[productName], testId)
        except WeaveDeviceMgr.DeviceManagerException, ex:
            print str(ex)
            return

        print "Start system test complete"