public static async Task SetManagerInfo(ClientDeviceType type = ClientDeviceType.Samsung, int androidSdkVersion = 29) { byte[] payload = new byte[3]; payload[0] = 1; payload[1] = (byte)type; payload[2] = (byte)androidSdkVersion; await BluetoothImpl.Instance.SendRequestAsync(SPPMessage.MessageIds.MANAGER_INFO, payload); }
public static SPPMessage SetManagerInfo(ClientDeviceType type = ClientDeviceType.Samsung, int androidSdkVersion = 29) { byte[] payload = new byte[3]; payload[0] = 1; payload[1] = (byte)type; payload[2] = (byte)androidSdkVersion; return(new SPPMessage(SPPMessage.MessageIds.MSG_ID_MANAGER_INFO, SPPMessage.MsgType.Request, payload)); }
/// <summary> /// Gets a value to indicate whether the specified device is a mobile device. /// </summary> /// <param name="deviceType"></param> /// <returns></returns> public static bool IsMobileDevice(ClientDeviceType deviceType) { switch (deviceType) { case ClientDeviceType.Phone: case ClientDeviceType.Tablet: return(true); default: return(false); } }