I have an output stream whose definition is define stream outStream (deviceID string, val int).
In the 'receive' method of its callback, I want to do some processing with the val(of type int). Is there any method to retrieve this integer value from the Event object?
I tried to retrieve it using "events[i].getData().toString()", but the string returned is "[Ljava.lang.Object;@c55cfc" and i can't make any sense of it. (Here, 'events' is the array of 'Events' passed in to the 'receive' method of the callback)
Thanks in advance for any assistance.