The issue is that I fixed some of your bugs in the attached file, as follows:
- Changed to handle larger number of records greater than 256 records, we need 500 records capability, was 8-bit record counter, now is 16 bit records counter.
- Fixed an endless loop issue in RACP code. The “first/last” RACP sending logic had an endless loop.
- Changed m_next_seq_num to global variable to be global to access from other parts of the codebase. This is the record sequence number.
- fix logic in glucose_meas_send call that never completes sending char notification, see lines 716-721