Hi Martin
Very good. I will gladly use your suggestion
For a slow data transfer I like to use the option with the string.
With Flowcode it is very easy to create a string that contains the values of several channels. A comma can also be inserted
Sendstring=ToString$(value1) + "," + ToString$(value2) + "," + ToString$(value3) + "\r\n"
But the values must first be brought to the same length. Simply add a leading "0" or leading space
This means that the value 50 becomes 050.
To get a new line on the end, add the characters for it "\r\n"
For example "150,050,300\r\n"
This sent string can be easily viewed with a terminal program and also logged into a text file. If you save the text file with .csv instead of .txt, you even have a simple Excel file
But the string can also be easily converted back into data. All you have to do is split the string back into integer values.
Value 1 = StringToInt$(string position 0 with length 3)
Value 2= StringToInt$(string position 4 with length 3)
Value 3= StringToInt$(string position 8 with length 3)
For fast data transfer I use blocks that are as large as possible and hold the integer value. With the ESP32 Bluetooth, sending 32Kbyte blocks work every 300mSec.it's not so fast.
I googled it, it has to do with DMA and cache(maybe). There is certainly room for improvement with Flowcode
I'll leave that to Ben
With the crash, I agree with you here too
I'll leave that to Ben
Hopefully Ben and co. can come up with a proper solution..
regards
Stefan