Perhaps I'm over-thinking the disconnect() function. What happens to the UART and the data in the UART buffers when the IOIO disconnects? I'm assuming that the UART configuration is lost, so I interrupt the thread that's handling the device communications and reset everything. I could set a flag when the setup() runs the first time and skip the UART config if setup() runs again. Is that possible?
Kevin On Wed, Nov 30, 2016 at 5:54 PM, Kevin Miller <ksmille...@gmail.com> wrote: > Hello, > I've got a really big project nearing completion, but now that I'm getting > into the fine details of UART communication, I'm having a problem with > frequent disconnect()/setup() cycles which is interfering with the serial > communications. I'm using Bluetooth for developing, but I don't think that > is the cause because when I run the basic HelloIOIOService example, it is > rock solid. What other reasons could be causing the disconnect? Is there > some way to dig deeper to see what is causing the disconnects? > > > Thanks, > Kevin > > -- > You received this message because you are subscribed to a topic in the > Google Groups "ioio-users" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/ioio-users/zDXx_-guywQ/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > ioio-users+unsubscr...@googlegroups.com. > To post to this group, send email to ioio-users@googlegroups.com. > Visit this group at https://groups.google.com/group/ioio-users. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "ioio-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to ioio-users+unsubscr...@googlegroups.com. To post to this group, send email to ioio-users@googlegroups.com. Visit this group at https://groups.google.com/group/ioio-users. For more options, visit https://groups.google.com/d/optout.