You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 29, 2019. It is now read-only.
I am using Salut 0.5.0 and I have two client devices and a host successfully connected to each other.
Communication between host and client works fine. However, when I invoke sendToDevice to try to send some data from one client to another client:
network.sendToDevice(anotherClientDevice, data, new SalutCallback() {
@Override
public void call() {
Log.d(TAG, "send data to device failed");
}
}
);
I got the following exception:
java.lang.IllegalArgumentException: host=null, port=4321
at java.net.InetSocketAddress.(InetSocketAddress.java:99)
at java.net.InetSocketAddress.(InetSocketAddress.java:90)
at com.peak.salut.BackgroundDataSendJob.doOnBackground(BackgroundDataSendJob.java:37)
at com.arasthel.asyncjob.AsyncJob$2.run(AsyncJob.java:59)
at java.lang.Thread.run(Thread.java:818)
It turns out that device.serviceAddress is null in BackgroundDataSendJob:
I am using Salut 0.5.0 and I have two client devices and a host successfully connected to each other.
Communication between host and client works fine. However, when I invoke sendToDevice to try to send some data from one client to another client:
I got the following exception:
java.lang.IllegalArgumentException: host=null, port=4321
at java.net.InetSocketAddress.(InetSocketAddress.java:99)
at java.net.InetSocketAddress.(InetSocketAddress.java:90)
at com.peak.salut.BackgroundDataSendJob.doOnBackground(BackgroundDataSendJob.java:37)
at com.arasthel.asyncjob.AsyncJob$2.run(AsyncJob.java:59)
at java.lang.Thread.run(Thread.java:818)
It turns out that
device.serviceAddressisnullinBackgroundDataSendJob:The field
Salut.serviceAddressseems to be not properly set inBackgroundClientRegistrationJobandBackgroundServerRegistrationJob.Any thoughts on this?