-
Is there a library to initial IODEVICE using TCP ?. I am looking to control a Firmata device over wifi. Thanks in advance |
Beta Was this translation helpful? Give feedback.
Answered by
kurbatov
Jul 11, 2021
Replies: 1 comment
-
Hi @olivacc, firmata4j contains a transport for that - NetworkTransport. Unfortunately, it is not present in the latest released version (v 2.3.8). But you can build the library locally from the master branch of this repository in the following way: $ git clone [email protected]:kurbatov/firmata4j.git
$ cd firmata4j
$ mvn clean install Then you can make a project of yours to be dependent from the library you just built: <dependency>
<groupId>com.github.kurbatov</groupId>
<artifactId>firmata4j</artifactId>
<version>2.3.9-SNAPSHOT</version>
</dependency> And use the network transport when constructing the IODevice device = new FirmataDevice(new NetworkTransport("192.168.1.18:4334")); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kurbatov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @olivacc,
firmata4j contains a transport for that - NetworkTransport.
Unfortunately, it is not present in the latest released version (v 2.3.8). But you can build the library locally from the master branch of this repository in the following way:
Then you can make a project of yours to be dependent from the library you just built:
And use the network transport when constructing the
IODevice
: