Page 1 of 1

RFduino keeping connected

Posted: 17:20, 06 Feb 2015
by Christian1991
Hi,
I am working with the RFduino set and I am trying to create an app with several pages.
Linking from one HTML file to another works perfectly but whenever I change "page" I lose the connection to the RFduino. Is there anyway to maintain the connection?

Re: RFduino keeping connected

Posted: 10:38, 20 Mar 2015
by ardiri
it may be an issue with a local variable used for maintaining the connection with the RFduino - have you considered using a div based approach and then show/hide what is relevant; Mikael posted a tutorial that uses this type of technique showing how this is done with an example:

http://evothings.com/quick-guide-to-wri ... avascript/

alternatively; if you could find a way to preserve the variable when switching the pages (if you must do it); then you could find a solution for that.