Commit b5e38e00 authored by Loris Croce's avatar Loris Croce
Browse files

send files not really working

parent 0aab9660
......@@ -16,6 +16,7 @@ import android.widget.Toast;
import android.widget.ToggleButton;
import java.io.File;
import java.util.Arrays;
import co.nstant.in.cbor.CborException;
import de.tonifetzer.sensorrecorder.sender.Sender;
......@@ -88,6 +89,8 @@ public class MainActivity extends AppCompatActivity {
public void onClick(View v) {
try {
//TODO list files in directory and send them
sender.uploadMultipleFiles(Arrays.asList(dataLogger.getFolder()
.getFolder().listFiles()));
} catch (Exception e) {
}
......
......@@ -5,7 +5,7 @@ import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
public class AppConfig {
private static String BASE_URL = "http://192.168.1.39:12345";
private static String BASE_URL = "http://192.168.1.18:8080";
public static Retrofit getRetrofit() {
return new Retrofit.Builder()
.baseUrl(AppConfig.BASE_URL)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment