public static SPPMessage SetMainConnection(DeviceInv side) { byte[] payload = new byte[1]; payload[0] = (byte)side; return(new SPPMessage(SPPMessage.MessageIds.MSG_ID_MAIN_CHANGE, SPPMessage.MsgType.Request, payload)); }
public static async Task SetMainConnection(DeviceInv side) { byte[] payload = new byte[1]; payload[0] = (byte)side; await BluetoothImpl.Instance.SendRequestAsync(SPPMessage.MessageIds.MAIN_CHANGE, payload); }