mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-28 05:01:28 +03:00
ESP8266WiFi - document event handler lifetime, add [[nodiscard]] (#9087)
* disallow not assigning wifieventhandler somewhere * fix markdown syntax in rst * mention lifetime in example and docs
This commit is contained in:
@ -79,7 +79,9 @@ Sketch is small so analysis shouldn't be difficult. In first line we are includi
|
||||
|
||||
Setting up of the access point ``ESPsoftAP_01`` is done by executing:
|
||||
|
||||
``cpp boolean result = WiFi.softAP("ESPsoftAP_01", "pass-to-soft-AP");``
|
||||
.. code:: cpp
|
||||
|
||||
boolean result = WiFi.softAP("ESPsoftAP_01", "pass-to-soft-AP");
|
||||
|
||||
If this operation is successful then ``result`` will be ``true`` or ``false`` if otherwise. Basing on that either ``Ready`` or ``Failed!`` will be printed out by the following ``if - else`` conditional statement.
|
||||
|
||||
|
Reference in New Issue
Block a user