Browse Source

解析JSON报错修改

master
zwsd 3 years ago
parent
commit
b179649d19
  1. 2
      main/gatts_demo.c

2
main/gatts_demo.c

@ -1009,7 +1009,7 @@ bool parse_rxbuffer_and_validation_data(cJSON **json_tmp)
*json_tmp = cJSON_Parse(&bluetooth_rx_buffer[0]); *json_tmp = cJSON_Parse(&bluetooth_rx_buffer[0]);
if (*json_tmp == NULL) if (*json_tmp == NULL)
{ {
ESP_LOGE(GATTS_TAG, "ERROR json_tmp null");
ESP_LOGE(GATTS_TAG, "parse rxbuffer nil or redundant symbol ',' ");
return false; return false;
} }
return true; return true;

Loading…
Cancel
Save