Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years, 11 months ago.
Hexiwear_BLE_example
Hello,
I was trying to test the Hexiwear_BLE_example but no success so far. The OLED display lights up and shows the text "BLUETOOTH \n TAP BELOW" but no pairing code appears and the hexiwear is not detected by the smartphone. If I use the original/ factory .bin, it is able to display the code and pair.
Is it possible that the code is to old (it is from 2016 and my hardware is form 2018) ?
The remaining text is not showing (PAIR CODE...), so I think is a problem with the callback. Can anyone confirm or suggest a solution?
Do I need to press the Reset button of the KW40Z ? or just the main MCU?
1 Answer
5 years, 11 months ago.
Hi D Guim,
Is the blue LED on? If it does, that means it is under advertising, mobile should be able to scan it.
If you are using the example https://os.mbed.com/teams/Hexiwear/code/Hexi_BLE_Example/, please try not to update mbed-os, use the original one.
Have you tried pressing other buttons and did they work? Maybe you can add the following code in PassKey() to check if the button callback is called or not.
main.cpp
void PassKey(void) { ... blueLed = !blueLed; ... }
Please feel free to ask any questions.
- Desmond, team Mbed
Thanks for the reply, How can I confirm that the original mbed-os is being used? I went to the example code and clicked import into compiler. The Repository details on the example say it is for Mbed OS version 5, so it should be ok, right?
posted by 21 Dec 2018Looks like you are using online compiler, in that way, the project is using the latest Mbed-OS 5.11, you can check the revision by right-click on mbed-os, and select "revision".
However, the example is using Mbed-OS 5.1.4 https://os.mbed.com/teams/Hexiwear/code/Hexi_BLE_Example/file/c2ab3a0de448/mbed-os.lib/, there are a lot of changes between these two version, so there might be some issues.
You can try download our mbed-cli, so you can directly import the project with the exact mbed-os.lib version.
- Desmond
posted by 21 Dec 2018