File tree 3 files changed +4
-4
lines changed
libraries/OpenThread/examples/SimpleThreadNetwork
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ void setup() {
24
24
return ;
25
25
}
26
26
// wait for the node to enter in the router state
27
- uint32_t timeout = millis () + 90000 ; // waits 90 seconds to
27
+ uint32_t timeout = millis () + 90000 ; // waits 90 seconds to
28
28
while (otGetDeviceRole () != OT_ROLE_CHILD && otGetDeviceRole () != OT_ROLE_ROUTER) {
29
29
Serial.print (" ." );
30
30
if (millis () > timeout) {
@@ -47,7 +47,7 @@ void setup() {
47
47
}
48
48
49
49
// OpenThread API
50
- Serial.printf (" PanID[using OT API]: 0x%x\r\n " , (uint16_t ) otLinkGetPanId (esp_openthread_get_instance ()));
50
+ Serial.printf (" PanID[using OT API]: 0x%x\r\n " , (uint16_t )otLinkGetPanId (esp_openthread_get_instance ()));
51
51
}
52
52
Serial.println (" \r\n " );
53
53
}
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ void loop() {
40
40
Serial.println (otGetStringDeviceRole ());
41
41
42
42
// Native OpenThread API calls:
43
- // wait until the node become Child or Router
43
+ // wait until the node become Child or Router
44
44
if (otGetDeviceRole () == OT_ROLE_LEADER) {
45
45
// Network Name
46
46
const char *networkName = otThreadGetNetworkName (aInstance);
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ void loop() {
40
40
Serial.println (otGetStringDeviceRole ());
41
41
42
42
// Native OpenThread API calls:
43
- // wait until the node become Child or Router
43
+ // wait until the node become Child or Router
44
44
if (otGetDeviceRole () == OT_ROLE_CHILD || otGetDeviceRole () == OT_ROLE_ROUTER) {
45
45
// Network Name
46
46
const char *networkName = otThreadGetNetworkName (aInstance);
You can’t perform that action at this time.
0 commit comments