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

How to send a byte array by battery level notification

Dear Sir/Madam,

Normally battery level notification is only one byte. But I need send byte array of 58 bytes through battery level notifications in my project.  I have to do this because one obsolete product in my company does this and I have to keep the same behavior.   I am working on SDK 8, S110 with 51822. I don't know how to make battery-level notification send a byte array instead of 1-byte variable. Could you tell me how to achieve this purpose?  Do I need split the 58 bytes into two 20-byte array and one 18-byte array to fit the GATT packet?

Thanks,

Jacky