AnsweredAssumed Answered

Updating values

Question asked by jamp on Mar 8, 2018
Latest reply on Mar 26, 2018 by jamp

Hello all, 

 

I am having a problems to update some values on the master, I am using bluenrg-1 I have one device working as a master and other as a slave. The slave has a button, I have both connected and every time I press the button on the slave  the function aci_gatt_update_char_value() is called containing a value, I have on the slave that configuration:

 

aci_gatt_add_char( Service_Handle,
UUID_TYPE_128,
&char_uuid,
CHAR_VALUE_LENGTH,
CHAR_PROP_READ|CHAR_PROP_NOTIFY,
ATTR_PERMISSION_NONE,
GATT_DONT_NOTIFY_EVENTS,
ENCRYPTION_KEY_SIZE,
ATT_HAS_FIXED_LENGTH,
&CharHandle);

 

the master is discovering the service and characteristic from the slave. Do I need to do something more or in a different manner? Which event function will be call on the master?

I can read the values from the master  requesting the value every x time once both are connected but I would like to received the value on the master just the button is pressed. 

 

Thank you

Outcomes