예제 #1
0
        public static UuidHandler GetDeviceCharastricServiceUuid(BleDeviceHandler handle, int idx)
        {
            var ptr  = _BlePluginDeviceCharastricServiceUuid(handle.ptr, idx);
            var uuid = new UuidHandler(ptr);

            return(uuid);
        }
예제 #2
0
        public static BleDeviceHandler GetDeviceHandleByAddr(ulong addr)
        {
            var ptr    = _BlePluginGetDevicePtrByAddr(addr);
            var handle = new BleDeviceHandler(ptr);

            return(handle);
        }
예제 #3
0
        public static BleDeviceHandler GetConnectDevicePtr(int idx)
        {
            var ptr    = _BlePluginGetConnectDevicePtr(idx);
            var handle = new BleDeviceHandler(ptr);

            return(handle);
        }
예제 #4
0
 public static int GetDeviceCharastricsNum(BleDeviceHandler handle)
 {
     return(_BlePluginDeviceCharastricsNum(handle.ptr));
 }
예제 #5
0
 public ulong GetDeviceAddr(BleDeviceHandler handle)
 {
     return(_BlePluginDeviceGetAddr(handle.ptr));
 }
예제 #6
0
 public static bool IsDeviceConnected(BleDeviceHandler handle)
 {
     return(_BlePluginIsDeviceConnected(handle.ptr));
 }