Page 1 of 1

GTT2.5 slider handler

Posted: Tue Oct 20, 2020 12:49 pm
by bigmaple
Anyone have any examples of a handler for a GTT2.5 type slider control?

I tried to create just a basic one to do a printf when the handler is tripped, based on what I saw in gtt_events.h:

Code: Select all

void handle_MotorSlider(gtt_device *gtt, uint16_t ObjectID, uint16_t PropertyID){
    printf("Slider Handler %u  %u\n", ObjectID, PropertyID);
}
I then set the handler in the main() function:

Code: Select all

gtt25_set_baseobject_on_property_changehandler(gtt, handle_MotorSlider);
This does absolutely nothing. Obviously I have no understanding on how to do this. ( I do have button/region handlers working properly)
Any suggestions greatly appreciated! Thanks.