コード例 #1
0
    def test_call_hello_world(self):
        driver = ExampleArduinoDriver(hardware_id="72442ba3-058c-4cee-a060-5d7c644f1dbe", do_hanshake=True, do_authentification=True, connection_timeout=0)
        yield driver.connect(port=self.ports[0], connection_mode=1)

        exp_response = "Hello python, Arduino here"
        obs_response = yield driver.hello_world()
        self.assertEquals(obs_response, exp_response)
        driver.disconnect()
コード例 #2
0
    def test_call_hello_world(self):
        driver = ExampleArduinoDriver(
            hardware_id="72442ba3-058c-4cee-a060-5d7c644f1dbe",
            do_hanshake=True,
            do_authentification=True,
            connection_timeout=0)
        yield driver.connect(port=self.ports[0], connection_mode=1)

        exp_response = "Hello python, Arduino here"
        obs_response = yield driver.hello_world()
        self.assertEquals(obs_response, exp_response)
        driver.disconnect()