BTW, the PIC is well specified and I can't see anything that would adversely affect the values to be sent with the straight forward functions we are using. The PIC is innocent your Honour!
OK...I used the two printf statements instead of the -elegant- sprintf statement,
and we are back to both values being superimposed in the yellow band ["151"] on top of ["169"], etc
Both values should be in the Yellow band, that is by design so we can at least see what has been received. EDIT: Oh hang on, you mean the 2nd value replaced the 1st.
I really need to setup a board and run some tests but currently our house is a building site and I don't have the space unfortunately. If you get fed up with this distraction Patrick I fully understand, I just wanted you to have the most efficient, reliable code.
Hello,
It was a while ago when I last time used PIC micros but as for sending multiple data as a list, why don't you put them into a string first and send the string instead of sending them separately. Well, the sprintf does something similar putting them into a character stream, but it is worth a try. Unfortunately i don't have a PIC right now so I cant try it, but maybe I can do some trick with the ESP to program its serial in similar way (assuming I will have enough time this week).
with this Script? Ugo (Usane) suggested going back to sprinf(). I think he could be on to something because we had some success before. main3.txt (15.6 KB)
Edit: I have replaced Swirlworks3.aia with a revised project, Swirlworks3B.aia, removing a self-inflicted bug and improving status report.
I think what is happening is that the Block's separation of values is not triggered because they are not accompanied by BLE characteristic data - so I guess we are lucky we can get data in.