Skip to content

Commit 59007e8

Browse files
committed
update example
1 parent 82cda71 commit 59007e8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

examples/NetworkConfiguratorDemo/NetworkConfiguratorDemo.ino

+11
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,17 @@ void setup() {
6868
/* Add the interfaces that are enabled for configuring the network*/
6969
NetworkConfigurator.addAgent(BLEAgent);
7070
NetworkConfigurator.addAgent(SerialAgent);
71+
72+
//Uncomment this for disabling the reconfiguration pin and the reconfiguration procedure
73+
//NetworkConfigurator.setReconfigurePin(DISABLE_PIN);
74+
75+
/* Uncomment and specify your preferred pin for changing the default reconfiguration pin
76+
* The pin must be in the list of digital pins usable for interrupts.
77+
* Please refer to the Arduino documentation for more details:
78+
* https://docs.arduino.cc/language-reference/en/functions/external-interrupts/attachInterrupt/
79+
*/
80+
//NetworkConfigurator.setReconfigurePin(your_pin);
81+
7182
/* Add a custom callback function to be invoked every time the interrupt on reconfiguration pin is fired*/
7283
NetworkConfigurator.addReconfigurePinCallback(onResetPinInterrupt);
7384
/* Start the network configurator */

0 commit comments

Comments
 (0)