| 202 | otNetworkKey OpenThread::mNetworkKey; |
| 203 | |
| 204 | OpenThread::OpenThread() { |
| 205 | // static initialization (node data and stack starting information) |
| 206 | otStarted = false; |
| 207 | mCurrentDataset.clear(); // Initialize the current dataset |
| 208 | memset(&mNetworkKey, 0, sizeof(mNetworkKey)); // Initialize the network key |
| 209 | mInstance = nullptr; |
| 210 | } |
| 211 | |
| 212 | OpenThread::~OpenThread() { |
| 213 | end(); |