setNodeName method
Send the name to the device.
Implementation
Future<void> setNodeName(String name) {
if (name.isEmpty || name.length > 16) throw 'invalid name: $name';
this.name = name;
final cmdData = [
COMMAND_CLASS_NODE_NAMING,
NODE_NAMING_NODE_NAME_SET,
0x00, // ASCII characters 0 - 127
];
cmdData.addAll(buildAsciiChars(name));
return commandHandler!.request(ZwRequest(
logger,
id,
buildSendDataRequest(id, cmdData),
));
}