-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RenameTympanBT.ino bug #62
Comments
To help document this issue:
Also, be aware that renaming the BT module has lost a lot of its appeal. The problem is that the full Bluetooth name is no longer displayed on most phones now that the Tympan is using BLE instead of BT Classic. When the phone senses a BLE-type connection, the phone (my Android phone, at least) displays the BLE name. The BLE name is the "short" name. It's so short (8 characters? or only 6?) that you can't really give it a meaningful name. Yes, even with such a short name, you could call it "TympanE", but this gives up on including any portion of the BT hex address. If you've got more than one Tympan floating around, you won't be able to tell the difference. Obviously, for me, this would be really bad. Since I want to keep a bunch of those hex characters, I'd only really have 2 characters of the short name that I could customize...which didn't seem worth it. Your preferences are likely different...I just wanted to make sure that you were aware of the situation with BLE causing the "short" name to be the relevant one. |
Using Tympan Rev E Thanks for the clarification on module name use. The included .h file for RevD and RevE also has a section that sets the new_BLE_name, which is
|
The RenameTympanBT.ino example sketch appears to have a bug.
The existing code starting on line 38 reads
This is not correct because the given_BT_name does not have even close to 13 characters. Running this code causes the Tennsy to reboot, likely because of the "array out of bounds" caused by calling a position in given_BT_name that doesn't exist.
The correct substring start point should be 3. It seems that there is an erroneous 1 in the substring parameter.
Also, the given_BT_name also includes the "OK" that is sent by the module. This has to be stripped off.
Here is the working section of code:
The text was updated successfully, but these errors were encountered: