Update Reference.md
This commit is contained in:
parent
54dbda9484
commit
36ad80a91f
|
|
@ -22,7 +22,13 @@ At runtime HomeSpan will create a global **object** named `homeSpan` that suppor
|
|||
|
||||
* `void poll()`
|
||||
* checks for HAP requests, local commands, and device activity
|
||||
* **must** be called repeatedly in each sketch and is typically placed at the top of the Arduino `loop()` method
|
||||
* **must** be called repeatedly in each sketch and is typically placed at the top of the Arduino `loop()` method, *unless* `autoPoll()` is used instead
|
||||
|
||||
* `void autoPoll()`
|
||||
* an *optional* method to create a task that repeatedly calls `poll()` in the background, which frees up the Ardino `loop()` method for any user-defined code that would otherwise block, or be blocked by, calling `poll()` in the `loop()` method
|
||||
* if used, **must** be placed in a sketch as the last line in the Arduino `setup()` method
|
||||
* HomeSpan will throw and error
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue