Update NOW.md
This commit is contained in:
parent
a6a84b5e21
commit
503143c355
10
docs/NOW.md
10
docs/NOW.md
|
|
@ -61,6 +61,16 @@ Also note that regardless of whether or not the queue if full, if the size of a
|
||||||
* if used, this method must be called *before* the instantiation of any SpanPoint objects. Example: `SpanPoint::setPassword("MyPassword");`
|
* if used, this method must be called *before* the instantiation of any SpanPoint objects. Example: `SpanPoint::setPassword("MyPassword");`
|
||||||
* the same passphrase must be used among all devices that are communicating via SpanPoint, else the receiving device will not be able to decrypt messages it receives
|
* the same passphrase must be used among all devices that are communicating via SpanPoint, else the receiving device will not be able to decrypt messages it receives
|
||||||
|
|
||||||
|
* `static void setEncryption(boolean encrypt)`
|
||||||
|
|
||||||
|
* this *optional* **class-level** method provides the ability to enable or disable encryption according to whether *encrypt* is set to *true* or *false*
|
||||||
|
* by default, encryption is normally enabled (using the password above)
|
||||||
|
* if used, this method must be called *before* the instantiation of any SpanPoint objects. Example: `SpanPoint::setEncryption(false);` disables encryption for all SpanPoint connections
|
||||||
|
* note that this is a global setting - if SpanPoint encryption is disabled on the main device, it must also be disabled on every remote device, else communication between devices will fail
|
||||||
|
* enabling/disabling encryption impacts that total number of SpanPoint connections that can be supported by the ESP32's ESP-NOW functionality:
|
||||||
|
* with encryption enabled, the ESP32 can support a maximum of 7 ESP-NOW links (i.e. 7 instances of SpanPoint)
|
||||||
|
* with encryption disabled, the ESP32 can support a maximum of 20 ESP-NOW links (i.e. 20 instances of SpanPoint)
|
||||||
|
|
||||||
* `static void setChannelMask(uint16_t mask)`
|
* `static void setChannelMask(uint16_t mask)`
|
||||||
|
|
||||||
* this *optional* **class-level** method changes the default channel bitmask from 0x3FFE (i.e. 0011 1111 1111 1110) to *mask*
|
* this *optional* **class-level** method changes the default channel bitmask from 0x3FFE (i.e. 0011 1111 1111 1110) to *mask*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue