Search found 2 matches

by symantix
19 May 2018 20:02
Forum: RaZberry
Topic: C Callback on Successful Device Add
Replies: 2
Views: 2848

Re: C Callback on Successful Device Add

I figured out the answer to my own question, but thought I would share a solution: int newAddress; ZDataHolder newData; data_acquire_lock(ZDataRoot(zway)); newData = zway_find_controller_data(zway, "lastIncludedDevice"); zdata_get_integer(newData, &newAddress); zdata_release_lock(ZData...
by symantix
19 May 2018 05:02
Forum: RaZberry
Topic: C Callback on Successful Device Add
Replies: 2
Views: 2848

C Callback on Successful Device Add

Hi All! I'm using the C stack to run a modified version of z-way-test to do some automated work I need done. One of the things that I need to capture on a device add is an added device's newly assigned address. I've hooked in to the callback for the add function, but I'm unable to figure out how to ...