I’ve follwed the docs which state to get a variable you insert the following code into android studio.
double aDouble = myDevice.getDoubleVariable("someDoubleValue");
So cater for my variable I have declared and flashed onto my photon I’ve changed this to:
double longitude = particleDevice.getDoubleVariable("longitude");
However I’m getting this error (referring to the
Error:(56, 96) error: unreported exception VariableDoesNotExistException; must be caught or declared to be thrown
I don’t understand why this error would occur. Obviously the variable doesn’t exist yet because it is going to retrieve it from my photon, but it can’t until this code compiles!