|
|
@ -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; |
|
|
|
|
|
|
|