oltman
oltman
Thanks, Keith! I loaded the code and tried it-- One issue is that 'zigbee.getEvent(description)' does not return an event for the returns from this device. So you never get into...
I just made if if(1) and moved on. fix that later and work on the rest of the parsing... Best Regards, Randy On Thursday, September 13, 2018, 10:04:12 PM EDT,...
This code will parse the accelerometer values correctly. (around line 226). Integer x = Integer.parseInt(value.substring(8,11),16) //@oltman Integer y = Integer.parseInt(value.substring(4,8),16) //@oltman Integer z = Integer.parseInt(value.substring(0,4),16) //@oltman if (x>=32768) x=x-65535 //converter...
For string opps, .substring(a,b) is inclusive of 'a' but exclusive of 'b', so you get indexes in the range [a..b). So it is three hex characters being passed to the...
@veeceeoh what is the simplest way to upload code? Apologies, but I was responding through email rather than the web interface of GitHub. (you really are dealing with a newbie)....
@veeceeoh feel free to use any of that code at will in the updated driver. My intention was to upload here. I will eventually delete that attachment from the comment...