clingProtocolName function

String clingProtocolName(
  1. int pid
)

Implementation

String  clingProtocolName(int pid) {
    switch (pid) {
      case 1:
        return "REGISTER WRITE";
      case 2:
        return "FILE_LOAD_LIST";
      case 3:
        return "FILE_READ";
      case 4:
        return "ota update";
      case 5:
        return "delete file";
      case 6:
        return "load device info";
      case 7:
        return "STREAMING SECOND";
      case 8:
        return "STREAMING_MINUTE";
      case 9:
        return "STREAMING_MULTI_MINUTES";
      case 10:
        return "ack";
      case 11:
        return "AUTHENTICATIOIN";
      case 12:
        return "reboot";
      case 13:
        return "start ota";
      case 14:
        return "WEATHER";
      case 15:
        return "USER_REMINDER";
      case 17:
        return "BLE DISCONNECT";
      case 18:
        return "LOAD_DAILY_ACTIVITY";
      case 19:
        return "SET_ANCS";
      case 21:
        return "DEVICE SETTING";
      case 22:
        return "STREAMING_DAY";
      case 23:
        return "SMART NOTIFICATION";
      case 24:
        return "SOS";
      case 25:
        return "SET LANGUAGE";
      case 26:
        return "USER PROFILE";
      case 27:
        return "查找手机";
      case 28:
        return "用户提醒新";
      case 37:
        return "表盘更新";
      case 38:
        return "星历更新";
      case 40:
        return "服药提醒";
      case 41:
        return "设置服药提醒";
      case 42:
        return "挂断电话";
      case 51:
        return "FORMAT_DISK";
      default:
        return "$pid";
    }
  }