I use "BleApp_ Flushuartstream "function defines an array. I want to use this function to automatically send my customized array to my mobile phone。
There were no errors when compiling
but it doesn't seem to work. What should I do?
Hi,
What app are you using on your phone? If you use the IoT Toolbox app, and send a number like in your code (1,2,3,4), you won't be able to see it. You should send "1", "2", "3", "4".
Regards,
Ricardo
Yes, I use IOT toolbox. I've changed the array to a character type, but the function that sends air data doesn't seem to automatically send the character array to my phone. Do I need to modify some code?
Hi,
Yes, you are correct. The Wireless UART example sends the information received from the serial terminal over the air. For the modification you made, your information will be sent until you receive it through the serial terminal
Now that you can send to your cell phone, what you have to do is use a timer so that you don't need to wait for a stream through the serial terminal, and you can send your data over the air.
Hope this makes sense.
Regards,
Ricardo
Please help me. I don't know how to add a timer in this.