T
T
thatmaniscool2017-06-22 19:15:56
Java
thatmaniscool, 2017-06-22 19:15:56

How to connect to a server using Java?

Suppose there is a small server and it is needed simply to store one small text file with an example of the following content:


1 // The first relay is on.
0 // Second relay off
0 // Third relay off
255 // PWM is running at full power

The content of the text file is that a microcontroller will also be connected to the server and read data from this text file and execute the specified parameters.
But first I need to put the text file on the server. How to do it with Java?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bedward70, 2017-06-23
@thatmaniscool

Good afternoon!
I would recommend libraries for JAVA:
1. If using FTP - Apache Net
2. If using SFTP - JCraft JSch

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question