Do we have any example for implementing a characteristic with more than 20 bytes? Thanks.
Do we have any example for implementing a characteristic with more than 20 bytes? Thanks.
Thanks guys, now I "almost totally" understand how it works by your answers.
I am doing some test to verify this now. I have a characteristic set to init_len to 40, and max_len = 40. But on Master Control Panel, it only reads the first 20 bytes when I press "discover services" button. When I press "Read" button in the log window it only shows 20 bytes too. I want to verify I can put more than 20 bytes out before I test my device with Apple devices.
OK, I figured it out. Now I know what does "read long" do. It reads more data than what one data packet can hold. It will send AttReadBlob requests.
what do you change?It reads more data than what one data packet can hold.