Author Topic: App crashing  (Read 121 times)

shanmukh

  • RFduino Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
App crashing
« on: December 08, 2017, 09:30:54 AM »
Is there any way to stop the app crashing by writing some code to the SFM ondisconnect()?What are the uses of this ondisconnect()?

tolson

  • Global Moderator
  • *****
  • Posts: 880
  • Karma: +21/-0
    • View Profile
    • Thomas Olson Consulting
Re: App crashing
« Reply #1 on: December 08, 2017, 12:43:31 PM »
onDisconnect is useful to set or reset a flag that indicates if you are connected to a phone or not.
For example if there is no phone connected you don't want to be trying to send something to it.

 

anything