コード例 #1
0
 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));
 }
コード例 #2
0
 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);
 }