User Tools

Site Tools


oak:reference:offline

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
oak:reference:offline [2016/12/17 19:36]
pfeerick
oak:reference:offline [2016/12/17 19:42] (current)
pfeerick added another section
Line 10: Line 10:
 Basically, run the Oak in manual safe mode only mode so it doesn'​t auto-reboot when there is no wifi, and run the oak in SYSTEM_MODE(SEMI_AUTOMATIC) or SYSTEM_MODE(MANUAL)?​ to manage the wifi connection / internet connection yourself in code. You can then have the Oak connect to wifi when it's available, or in response to a button, etc.  Basically, run the Oak in manual safe mode only mode so it doesn'​t auto-reboot when there is no wifi, and run the oak in SYSTEM_MODE(SEMI_AUTOMATIC) or SYSTEM_MODE(MANUAL)?​ to manage the wifi connection / internet connection yourself in code. You can then have the Oak connect to wifi when it's available, or in response to a button, etc. 
  
 +
 +====== Using the Oak WiFi API ======
 +
 +Here you basically have to options - run the Oak in SEMI_AUTOMATIC or MANUAL mode. In SEMI_AUTOMATIC mode, the Oak will try to connect to it's configured WiFi network automatically,​ but won't establish a Particle connection. In MANUAL mode, it won't connect to the WiFi or Particle automatically,​ it's entirely up to you to tell it how and when to connect. ​
 +
 +Why would you do this? Maybe you want to reduce power consumption,​ or want to run some time sensitive code, so don't want the WiFi or Particle connection routines causing timing or stability issues. Depending on whether you want an internet connection when your code starts will determine whether which mode you want to start the Oak in. 
 +
 +//Examples to come//
  
 ====== Managing Wifi Manually ====== ====== Managing Wifi Manually ======
Line 104: Line 112:
  
  
-MMTC+//MMTC//
oak/reference/offline.txt · Last modified: 2016/12/17 19:42 by pfeerick