I working on led flash project with bluetooth interface.
I send from app two position values of potentiometers to arduino who done cycle (On and OFF led with delay value of potentio.) and stops with waiting for new incoming positions
It stops me when i want to loop serial data (value) until new incoming data from TX.
Code:
#include<SoftwareSerial.h>
SoftwareSerial future(0, 1);
int ledPin=13;
I may misunderstand your problem but if you want the flashing to continue you should not have the code for it inside the if (future.available()){
Make the code for receiving the data separate from the code for acting on the data. Receive the data and store it in some variables. In the action code read the variables and use the values. That way the action will continue to use the values until they are changed.
Have a look at the examples in Serial Input Basics - simple reliable ways to receive data. There is also a parse example to illustrate how to extract numbers from the received text.
Please read the first post in any forum entitled how to use this forum. http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.
Bullshit! You can NOT possibly be reading data from the software serial instance, because those pins are already in use by the hardware serial instance.