EventNameFromCode() Important Deprecated in 5.0. EventNameFromCode(code) => String Get event name from code Table 1. Parameters code Integer Event code Return Event name Example println(EventNameFromCode(28)); // will print "SYS_NODE_DOWN"