状态码

作者: Android一行代码 | 来源:发表于2025-09-09 15:54 被阅读0次

public class StateCode {

/*---------------------------------------------------------------------
 *connection status
 * ---------------------------------------------------------------------*/
public final static int CONNECTION_OK = 1;        //Connection successful
public final static int CONNECTION_FAILED = 2;    //Connection Fail
public final static int CONNECTION_DISCONNECT = 0;//disconnect
public final static int CONNECTION_CONNECTING = 3;//connecting
public final static int CONNECTION_CONNECTED = 4; //connected

/*---------------------------------------------------------------------
 * Response Status
 * ---------------------------------------------------------------------*/
public final static int STATUS_SUCCESS = 0;                  //successful
public final static int STATUS_FAIL = 1;                     //failure
public final static int STATUS_UNKOWN_CMD = 2;               //unknown command
public final static int STATUS_BUSY = 3;                     //device is busy
public final static int STATUS_NO_RESOURCE = 4;              //no resource
public final static int STATUS_CRC_ERROR = 5;                //CRC check error
public final static int STATUS_ALL_DATA_CRC_ERROR = 6;       //all data CRC error
public final static int STATUS_PARAMETER_ERROR = 7;          //parameter error
public final static int STATUS_RESPONSE_DATA_OVER_LIMIT = 8; //The reply data exceeded the limit

/*--------------------------------------------------------------------
 * TWS
 *--------------------------------------------------------------------*/
/* =================== *
 * earphone status
 * =================== */
//Do not display popovers
public final static int TWS_HEADSET_STATUS_DIMISS = 0;
//Bluetooth is disconnected
public final static int TWS_HEADSET_STATUS_DISCONNECTED = 1;
//Bluetooth is connected
public final static int TWS_HEADSET_STATUS_CONNECTED = 2;
//Bluetooth is connecting
public final static int TWS_HEADSET_STATUS_CONNECTING = 3;

//C0
public final static int ADV_SETTINGS_ERROR_IN_GAME_MODE = 1; //Game mode causes Settings to fail
//The length of bluetooth name exceeds the limit
public final static int ADV_SETTINGS_ERROR_DEVICE_NAME_LENGTH_OVER_LIMIT = 2;
//Failed to set flash in non-Bluetooth mode
public final static int ADV_SETTINGS_ERROR_LED_SETTINGS_FAILED = 3;

}

相关文章

  • http状态码

    本篇关于http状态码 目录 http状态码分类 HTTP状态码列表 备注 http状态码分类 HTTP状态码列表 备注

  • http状态码书目录

    http状态码之100 http状态码之101 http状态码之102 http状态码之200 http状态码之2...

  • 图解HTTP-HTTP状态码

    204 NoContent状态码状态码

  • 状态码

    http网络请求 返回statusCode(状态码) 200、300、400、500。。。 201-206都表示服...

  • 状态码

    http状态码 1** 信息,服务器收到请求,需要请求者继续执行操作2** 成功,操作被成功接收并处理3** ...

  • 状态码

  • 状态码

    一 、2XX成功 1. 200 OK 表示从客户端发来的请求在服务器端被正常处理了。 2. 204 No Cont...

  • 状态码

    状态码

  • 状态码

    其中比较常用的几个是:200,201,204,206,301,302,303,304,403,404,500,50...

  • 状态码

    状态码类别 1XX:请求已经接受,继续处理中 2XX:请求已经处理成功 3XX:请求重定向 4XX:请求错误(语法...

网友评论

      本文标题:状态码

      本文链接:https://www.haomeiwen.com/subject/cccfzjtx.html