コード例 #1
0
        public void ApplicationClientPublishCommand()
        {
            bool result = testApp.publishCommand("demotest", "12345678", "test", "josn", "{\"temp\":25}", 0);

            if (!result)
            {
                testApp.connect();
                result = testApp.publishCommand("demotest", "12345678", "test", "josn", "{\"temp\":25}", 0);
            }
            Assert.IsTrue(result);
        }