deferral

Long running operation like ECDSA verify signature in the app_process_catch_rest_cb handler

Thu, 2018-11-15 14:26--tly@xtel.dk

We have a system which a BLE peripheral. It implements a set of characteristics for reading and then writing. We have implemented a write indication handler for a particular characteristic. This characteristic is 64 bytes long. When the central side of the connection writes this characteristic (using write-with-response) we run a ECDSA signature verification process inside the method pointed to by the app_process_catch_rest_cb. This operation takes approximately 1.2 seconds, which means that the handler is blocked in the CUSTS1_VAL_WRITE_IND handling inside the app_process_catch_rest_cb.

Subscribe to RSS - deferral