using UnityEngine;

namespace SmartBowSDK
{
    public class BluetoothDeviceConfig
    {
        public string deviceName;
        public string service;
        public string characteristicWrite;
        public string characteristicNotify;

        public static BluetoothDeviceConfig GetDefault()
        {
            BluetoothDeviceConfig config = new BluetoothDeviceConfig();
            //两个设备匹配
            config.deviceName = "Bbow_20210501 | HOUYI Pro | Pistol";
            if (Application.platform == RuntimePlatform.Android)
            {
                config.service = "0000fff0";
                config.characteristicWrite = "0000fff2";
                config.characteristicNotify = "0000fff1";
            }
            else if (Application.platform == RuntimePlatform.IPhonePlayer)
            {
                config.service = "fff0";
                config.characteristicWrite = "fff2";
                config.characteristicNotify = "fff1";
            }
            return config;
        }
    }
}
