11-04-2020, 06:10 PM
I got it to work, but this topic really hit every single little problem you could imagine.
First of all, this is the very first Bluetooth device that I found to use "indication" instead of "notification". In the future, phyphox will autodetect which it is, so you do not have to change anything about this now, but the implementation of "indication" was broken on both Android and iOS. In principle, your phyphox-file is absolutely correct, but depending on which phones there are available to you, you need a different workaround until the next phyphox version is released:
Android
Unfortunately, in the current version indications do not work at all. If you need Android-support soon (i.e. students should use it or you do not have an iPhone available for development), let me know and I will try to get a new beta version ready soon.
iOS
Indications work even the file is set to notification (i.e. as it is right now), but there is yet another bug that you will encounter here: At the moment that last value in "formattedString" cannot be parsed if there is no terminating separation character. In other words: Simply add another ";" after the last value in your Microbit sketch and it should work with your current phyphox file on the current iPhone version.
First of all, this is the very first Bluetooth device that I found to use "indication" instead of "notification". In the future, phyphox will autodetect which it is, so you do not have to change anything about this now, but the implementation of "indication" was broken on both Android and iOS. In principle, your phyphox-file is absolutely correct, but depending on which phones there are available to you, you need a different workaround until the next phyphox version is released:
Android
Unfortunately, in the current version indications do not work at all. If you need Android-support soon (i.e. students should use it or you do not have an iPhone available for development), let me know and I will try to get a new beta version ready soon.
iOS
Indications work even the file is set to notification (i.e. as it is right now), but there is yet another bug that you will encounter here: At the moment that last value in "formattedString" cannot be parsed if there is no terminating separation character. In other words: Simply add another ";" after the last value in your Microbit sketch and it should work with your current phyphox file on the current iPhone version.