2016-11-18 02:27 PM
Hi,
i have a problem using SensorDemo_New of BlueNRG DK 2.0.2COPY_ENV_SENS_SERVICE_UUID(uuid); ret = aci_gatt_add_serv(UUID_TYPE_128, uuid, PRIMARY_SERVICE, 10, &envSensServHandle);i get ERR_UNSPECIFIED_ERRORif change max_attr_records to 7: ret = aci_gatt_add_serv(UUID_TYPE_128, uuid, PRIMARY_SERVICE, 7, &envSensServHandle);i get ERR_UNSPECIFIED_ERROR when call: /* Humidity Characteristic */ if(sensor_board){ COPY_HUMIDITY_CHAR_UUID(uuid); ret = aci_gatt_add_char(envSensServHandle, UUID_TYPE_128, uuid, 2, CHAR_PROP_READ, ATTR_PERMISSION_NONE, GATT_NOTIFY_READ_REQ_AND_WAIT_FOR_APPL_RESP, 16, 0, &humidityCharHandle);Any suggest? Regards, D.###############################################################################################Solved with correct max_attr_records (19) and correct char_value_len of the added gatt char.Temperature char: char_value_len = 1
Pressure char: char_value_len = 2
Humiduty char: char_value_len = 2
Regards,
D.