autoWakeup method
Implementation
Future<void> autoWakeup() async {
SharedPreferences sp = await SharedPreferences.getInstance();
String? str = sp.getString(shareKey);
if (str != null) {
_autoWakeupMap = json.decode(str);
_autoWakeupMap.forEach((key, value) {
_requestNode(key);
if (value.isNotEmpty) {
NodeClient client = _getOrAddNode(key, value["ip"], value["port"]);
client.wakeUp(key);
}
});
}
}