if (client->ready == false) {
struct noti *noti;
+ /* GATT caching is not supported yet.
+ Once it supported, need to handle svc changed indication */
+ if (opcode == BT_ATT_OP_HANDLE_VAL_IND && !client->parent) {
+ util_debug(client->debug_callback, client->debug_data,
+ "Client is not ready. No need handling svc changed indication before full scan");
+ bt_att_send(client->att, BT_ATT_OP_HANDLE_VAL_CONF, NULL, 0,
+ NULL, NULL, NULL);
+ return;
+ }
+
util_debug(client->debug_callback, client->debug_data,
- "Client is not ready. pend notification.");
+ "Client is not ready. pend notification. opcode 0x%X", opcode);
noti = new0(struct noti, 1);
if (!noti)