I have searching for hours trying to find a solution to this. I have an arduino connected to an HM-10 BLE module. If I use an app such as Bluo to see the text I am sending via the HM-10 it displays as expected but when trying to get the same data in AI2 all I get is a corrupted string. It is always the same data regardless of what I send.
I’ve only been at his a couple of days so it’s all new to me but from what I have seen on the web this should work. Blocks and sketch attached.
I must be doing something wrong but I can’t figure it out so if someone could point out where I am going wrong it would be very much appreciated.
Thank you. That was the tutorial that I was using. I’ll have another look at it, I must have missed something out somewhere. As you say the string registration could be it.
I’m pretty sure I can rule out a wiring issue as I’m receving the data correctly in another ready made app.
Now working.
I was using ReadStrings when it wasn’t necessary. I needed to Register for Strings and use the When Strings Received process.
Thanks again for pointing me in the right direction.
Double check that your two connection strings (UUID, etc) are right for HM-10.
See the Donnelly video at FAQ Section: BlueTooth/BLE and HM-10 two thirds through for how to double check those.