Skip to content

How to connect to a device over WiFi? #53

Answered by kurbatov
olivacc asked this question in Q&A
Discussion options

You must be logged in to vote

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 git@github.com: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:

IODevice device = new Firma…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kurbatov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants