Asynstream in prefix mode reading packet from PIC.
My PIC project collects temperature data from 16 nodes over RF every 30 minute.
When I connect from my mobile to PIC over bluetooth serial, I need to get data from PIC.
So I try to use a FOR NEXT loop.
FOR node=1 to 16
send packet ' asking PIC to send temp data for node
PIC send data
NEXT
If there is no problem with communication and PIC is working, everything is ok.
But when the PIC has problem, and dont send packet back, how to solve it.
I my first version which is working, I use 2 SUBS.
The first SUB send the first asking packet PIC.
The SUB ends.
The second SUB is asynstream_newdata.
So when the PIC send back packet this sub is raised.
The data is processed.
Becouse I get packet, send asking packet for the second node.
When I get back packet from PIC a second sub is raised.
But when I dont get back packet, i have no data, and how to check it ?
Sorry for my english.