Skip to content

Commit a0e01f4

Browse files
ci(pre-commit): Apply automatic fixes
1 parent bf0e55e commit a0e01f4

File tree

9 files changed

+59
-60
lines changed

9 files changed

+59
-60
lines changed

libraries/OpenThread/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class OpenThread {
3232

3333
OpenThread();
3434
~OpenThread();
35-
35+
3636
// Returns true if the OpenThread stack is running.
3737
operator bool() const;
3838

@@ -258,4 +258,4 @@ extern OpenThreadCLI OThreadCLI;
258258
- It works seamlessly with the `OThread` and `DataSet` classes for managing Thread networks.
259259
- Ensure that the OpenThread stack is initialized (`OThreadCLI.begin()`) before starting the CLI console.
260260
261-
This documentation provides a comprehensive overview of the `OThreadCLI` class, its methods, and example usage. It is designed to help developers easily integrate OpenThread CLI functionality into their Arduino projects.
261+
This documentation provides a comprehensive overview of the `OThreadCLI` class, its methods, and example usage. It is designed to help developers easily integrate OpenThread CLI functionality into their Arduino projects.

libraries/OpenThread/examples/CLI/COAP/coap_lamp/coap_lamp.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ void setup() {
151151
Serial.begin(115200);
152152
// LED starts RED, indicating not connected to Thread network.
153153
rgbLedWrite(RGB_BUILTIN, 64, 0, 0);
154-
OThread.begin(false); // No AutoStart is necessary
154+
OThread.begin(false); // No AutoStart is necessary
155155
OThreadCLI.begin();
156156
OThreadCLI.setTimeout(250); // waits 250ms for the OpenThread CLI response
157157
setupNode();

libraries/OpenThread/examples/CLI/COAP/coap_switch/coap_switch.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ void setup() {
176176
Serial.begin(115200);
177177
// LED starts RED, indicating not connected to Thread network.
178178
rgbLedWrite(RGB_BUILTIN, 64, 0, 0);
179-
OThread.begin(false); // No AutoStart is necessary
179+
OThread.begin(false); // No AutoStart is necessary
180180
OThreadCLI.begin();
181181
OThreadCLI.setTimeout(250); // waits 250ms for the OpenThread CLI response
182182
setupNode();

libraries/OpenThread/examples/CLI/SimpleNode/SimpleNode.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
void setup() {
3737
Serial.begin(115200);
38-
OThread.begin(); // AutoStart using Thread default settings
38+
OThread.begin(); // AutoStart using Thread default settings
3939
OThreadCLI.begin();
4040
OThread.otPrintNetworkInformation(Serial); // Print Current Thread Network Information
4141
}

libraries/OpenThread/examples/CLI/SimpleThreadNetwork/LeaderNode/LeaderNode.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,4 @@ void loop() {
9999
}
100100

101101
delay(5000);
102-
}
102+
}

libraries/OpenThread/examples/CLI/ThreadScan/ThreadScan.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
void setup() {
2929
Serial.begin(115200);
30-
OThread.begin(true); // For scanning, AutoStart must be active, any setup
30+
OThread.begin(true); // For scanning, AutoStart must be active, any setup
3131
OThreadCLI.begin();
3232
OThreadCLI.setTimeout(100); // Set a timeout for the CLI response
3333
Serial.println();

libraries/OpenThread/keywords.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ OT_ROLE_CHILD LITERAL1
7070
OT_ROLE_ROUTER LITERAL1
7171
OT_ROLE_LEADER LITERAL1
7272
OT_EXT_PAN_ID_SIZE LITERAL1
73-
OT_NETWORK_KEY_SIZE LITERAL1
73+
OT_NETWORK_KEY_SIZE LITERAL1

libraries/OpenThread/src/OThread.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ extern "C" int lwip_hook_ip6_input(struct pbuf *p, struct netif *inp) {
4848
}
4949
#endif
5050

51-
5251
static void ot_task_worker(void *aContext) {
5352
esp_vfs_eventfd_config_t eventfd_config = {
5453
.max_fds = 3,

libraries/OpenThread/src/OThread.h

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -36,69 +36,69 @@ typedef enum {
3636
extern const char *otRoleString[];
3737

3838
class DataSet {
39-
public:
40-
DataSet();
41-
void clear();
42-
void initNew();
43-
const otOperationalDataset &getDataset() const;
44-
45-
// Setters
46-
void setNetworkName(const char *name);
47-
void setExtendedPanId(const uint8_t *extPanId);
48-
void setNetworkKey(const uint8_t *key);
49-
void setChannel(uint8_t channel);
50-
void setPanId(uint16_t panId);
51-
52-
// Getters
53-
const char *getNetworkName() const;
54-
const uint8_t *getExtendedPanId() const;
55-
const uint8_t *getNetworkKey() const;
56-
uint8_t getChannel() const;
57-
uint16_t getPanId() const;
58-
59-
// Apply the dataset to the OpenThread instance
60-
void apply(otInstance *instance);
61-
62-
private:
63-
otOperationalDataset mDataset;
39+
public:
40+
DataSet();
41+
void clear();
42+
void initNew();
43+
const otOperationalDataset &getDataset() const;
44+
45+
// Setters
46+
void setNetworkName(const char *name);
47+
void setExtendedPanId(const uint8_t *extPanId);
48+
void setNetworkKey(const uint8_t *key);
49+
void setChannel(uint8_t channel);
50+
void setPanId(uint16_t panId);
51+
52+
// Getters
53+
const char *getNetworkName() const;
54+
const uint8_t *getExtendedPanId() const;
55+
const uint8_t *getNetworkKey() const;
56+
uint8_t getChannel() const;
57+
uint16_t getPanId() const;
58+
59+
// Apply the dataset to the OpenThread instance
60+
void apply(otInstance *instance);
61+
62+
private:
63+
otOperationalDataset mDataset;
6464
};
6565

6666
class OpenThread {
67-
public:
68-
static bool otStarted;
69-
static ot_device_role_t otGetDeviceRole();
70-
static const char *otGetStringDeviceRole();
71-
static void otPrintNetworkInformation(Stream &output);
67+
public:
68+
static bool otStarted;
69+
static ot_device_role_t otGetDeviceRole();
70+
static const char *otGetStringDeviceRole();
71+
static void otPrintNetworkInformation(Stream &output);
7272

73-
OpenThread();
74-
~OpenThread();
75-
// returns true if OpenThread Stack is running
76-
operator bool() const;
73+
OpenThread();
74+
~OpenThread();
75+
// returns true if OpenThread Stack is running
76+
operator bool() const;
7777

78-
// Initialize OpenThread
79-
static void begin(bool OThreadAutoStart = true);
78+
// Initialize OpenThread
79+
static void begin(bool OThreadAutoStart = true);
8080

81-
// Initialize OpenThread
82-
static void end();
81+
// Initialize OpenThread
82+
static void end();
8383

84-
// Start the Thread network
85-
void start();
84+
// Start the Thread network
85+
void start();
8686

87-
// Stop the Thread network
88-
void stop();
87+
// Stop the Thread network
88+
void stop();
8989

90-
// Start Thread Network Interface
91-
void networkInterfaceUp();
90+
// Start Thread Network Interface
91+
void networkInterfaceUp();
9292

93-
// Stop Thread Network Interface
94-
void networkInterfaceDown();
93+
// Stop Thread Network Interface
94+
void networkInterfaceDown();
9595

96-
// Set the dataset
97-
void commitDataSet(const DataSet &dataset);
96+
// Set the dataset
97+
void commitDataSet(const DataSet &dataset);
9898

99-
private:
100-
static otInstance *mInstance;
101-
DataSet mCurrentDataSet;
99+
private:
100+
static otInstance *mInstance;
101+
DataSet mCurrentDataSet;
102102
};
103103

104104
extern OpenThread OThread;

0 commit comments

Comments
 (0)