This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to change or define this length?

Hi teams

After I follow this post.

https://devzone.nordicsemi.com/f/nordic-q-a/53909/sending-multiple-packets-at-every-interrupt-interval

And I modify my source code succeed.

The data was separate by 64 bytes?

How to change or define this "64" bytes in SDK15.2?

Please help me. Thank you.

Parents Reply
  • Hi Amanda

    Is this operate equal to directly modify sdk_config.h?

    If it's yes. I have already modify sdk_config.h.

    But it still separator by 64bytes.

    I also added this in my source code.

    void conn_evt_len_ext_set(void)
    {
        ret_code_t err_code;
        ble_opt_t  opt;
    
        memset(&opt, 0x00, sizeof(opt));
        opt.common_opt.conn_evt_ext.enable = 1;
    
        err_code = sd_ble_opt_set(BLE_COMMON_OPT_CONN_EVT_EXT, &opt);
        APP_ERROR_CHECK(err_code);
    }

    What do you think about this? 

Children
Related