i have a small app for personal use only and it started not being able to connect to the particle cloud.
I have been using the following to authenticate (used to work flawlessly)
Async.executeAsync(ParticleCloudSDK.getCloud(), new Async.ApiWork<ParticleCloud, Object>() {
@Override
public Object callApi(ParticleCloud particleCloud) throws ParticleCloudException, IOException {
mCloud = particleCloud;
particleCloud.logIn("user","password");
particleCloud.getDevices();
mDevice = particleCloud.getDevice(DeviceID);
return -1;
}
@Override
public void onSuccess(Object value) {
loggedin = true;
Toaster.s(MainActivity.this, "Logged in");
DisplayConnected();
}
@Override
public void onFailure(ParticleCloudException e) {
Toaster.l(MainActivity.this, "Wrong credentials or no internet connectivity, please try again");
DisplayError();
}
});
i also tried creating a Simple Auth Client and added
<string name="oauth_client_id">id</string>
<string name="oauth_client_secret">secret</string>
but I still get failure to connect. I am probably overlooking something very simple any help would be greatly appreciated.