package com.abbidot.baselibrary.constant

import androidx.annotation.IntDef

/**
 *Created  by .yzq on 2021/11/8/008.
 * @link
 * @description:设备连接状态
 */
@IntDef(
    ConState.DISCONNECTED,
    ConState.CONNECTED,
    ConState.CONNECTING,
    ConState.CONNECTING_MAC,
    ConState.CONNECTION_FAIL,
    ConState.BLUETOOTH_ON,
    ConState.BLUETOOTH_OFF,
    ConState.DEVICE_NOT_FOUND
)
@Retention(AnnotationRetention.SOURCE)
annotation class ConState {
    companion object {
        //连接断开
        const val DISCONNECTED = 0

        //已连接
        const val CONNECTED = 1

        //连接中
        const val CONNECTING = 2

        //连接指定Mac设备
        const val CONNECTING_MAC = 3

        //没有找到设备
        const val DEVICE_NOT_FOUND = 4

        //未连接,连接失败
        const val CONNECTION_FAIL = 5

        //打开蓝牙
        const val BLUETOOTH_ON = 6
        const val BLUETOOTH_OFF = 7
    }
}
