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

Battery Request Second time disconnection

Issue: when the battery level is requested for the first time from mobile its responding correctly. but, when it is requested for the second time from mobile, disconnection happens with message unknown error (0x3b).

Parents
  • Try to set it to 20ms then, so you have something like this:

    #define MIN_CONN_INTERVAL                   MSEC_TO_UNITS(20, UNIT_1_25_MS)             /**< Minimum acceptable connection interval (20 ms).  */
    #define MAX_CONN_INTERVAL                   MSEC_TO_UNITS(1000, UNIT_1_25_MS)            /**< Maximum acceptable connection interval (1 second). */
    

    There is no uniform connection settings for Android. What Android version are you using on the motoE ?

Reply
  • Try to set it to 20ms then, so you have something like this:

    #define MIN_CONN_INTERVAL                   MSEC_TO_UNITS(20, UNIT_1_25_MS)             /**< Minimum acceptable connection interval (20 ms).  */
    #define MAX_CONN_INTERVAL                   MSEC_TO_UNITS(1000, UNIT_1_25_MS)            /**< Maximum acceptable connection interval (1 second). */
    

    There is no uniform connection settings for Android. What Android version are you using on the motoE ?

Children
No Data
Related