Browse Source

删除主动上报测试代码,更换主动上报数据格式化位置

devtest
zwsd 3 years ago
parent
commit
b7559c9cca
  1. 8
      main/main.c

8
main/main.c

@ -51,14 +51,10 @@ bluetooth_processer_t s_bluetooth_processer = {
void app_main(void) {
constructor_bluetooth_processer(&s_bluetooth_processer);
bluetooth_auto_report_format_receipt();
ble_spp_server_demo_app_main(&s_bluetooth_processer);
timer_group_init(TIMER_GROUP_0, TIMER_0, false, timer_group0_interval_num, timer_interval_ms);
while (true) {
if (s_bluetooth_processer.table_handle_m != 0) {
bluetooth_tx_buffer_send_indicate();
}
bluetooth_gatts_try_process_data();
if (s_bluetooth_processer.auto_report_flag) {
receipt_json_get_status();
@ -138,6 +134,8 @@ void bluetooth_tx_buffer_send_indicate() {
uint8_t temp_count_remainder = 0;
uint8_t i = 0;
bluetooth_auto_report_format_receipt();
temp_lenght = strlen(bluetooth_tx_buffer);
temp_count_total = temp_lenght / 15;

Loading…
Cancel
Save