Functions to get link state form TP-Link