publicclassWatchManagerextendsWatchOpImpl{privateBluetoothDevicemTargetDevice;publicstaticWatchManagergetInstance(){if(nullinstance){synchronized(WatchManager.class){if(nullinstance){instance=newWatchManager(FUNC_WATCH);}}}returninstance;}//funcFUNC_WATCH:全功能FUNC_RCSP:仅仅使用rcsp协议FUNC_FILE_BROWSE:使用rcsp协议和目录浏览功能publicWatchManager(intfunc){super(func);}/获取当前连接的设备,sdk的操作都是基于该设备@return目标设备/@OverridepublicBluetoothDevicegetConnectedDevice(){returnmTargetDevice;}/SDK通知外部需要发送数据@paramdevice蓝牙设备对象@paramdata数据包byte数组@returnfalse:发送失败true:发送成功/@OverridepublicbooleansendDataToDevice(BluetoothDevicedevice,byte[]data){returnfalse;}
杰理之手表实现健康管理类【篇】
最新推荐文章于 2023-11-04 08:41:12 发布