MCPcopy Create free account
hub / github.com/Heltec-Aaron-Lee/WiFi_Kit_series / setNetworkKey

Method setNetworkKey

libraries/OpenThread/src/OThread.cpp:155–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155void DataSet::setNetworkKey(const uint8_t *key) {
156 if (!key) {
157 log_w("Network key is null");
158 return;
159 }
160 memcpy(mDataset.mNetworkKey.m8, key, OT_NETWORK_KEY_SIZE);
161 mDataset.mComponents.mIsNetworkKeyPresent = true;
162}
163
164void DataSet::setChannel(uint8_t channel) {
165 mDataset.mChannel = channel;

Callers 1

OThread.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected