Closed countrysideboy closed 1 year ago
thank you! will check it the in the next days
Use the bindkey as a string, instead of the byte array, such as “1122aabbcc…”?
Use the bindkey as a string, instead of the byte array, such as “1122aabbcc…”?
Sorry my fault, you have the bind key in .ino file, yes it would be better to have a string for the user to make it more clear. I will use your code as it is now and will try to make it a string if you don't have any time :)
At first, I try to use the bindkey string, but I find no simple way convert form hex string to byte array.
Port the code form bthome-weather-station project.
ENABLE_ENCRYPT will add extra data to the adv,which may makes the length longer than 31(bluetooth 4.0), so buildPaket with only one measurement data.
Maybe we should upgrade to ble 5.0, but it's another story...