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

Method setNetworkName

libraries/OpenThread/src/OThread.cpp:136–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void DataSet::setNetworkName(const char *name) {
137 if (!name) {
138 log_w("Network name is null");
139 return;
140 }
141 // char m8[OT_NETWORK_KEY_SIZE + 1] bytes space by definition
142 strncpy(mDataset.mNetworkName.m8, name, OT_NETWORK_KEY_SIZE);
143 mDataset.mComponents.mIsNetworkNamePresent = true;
144}
145
146void DataSet::setExtendedPanId(const uint8_t *extPanId) {
147 if (!extPanId) {

Callers 1

OThread.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected