code: private void sendMessage(BeanMessageID type, Message message) {
          Buffer buffer = new Buffer();
          buffer.writeByte((type.getRawValue() >> 8) & 0xff);
          buffer.writeByte(type.getRawValue() & 0xff);
          buffer.write(message.toPayload());
          GattSerialMessage serialMessage = GattSerialMessage.fromPayload(buffer.readByteArray());
          gattClient.getSerialProfile().sendMessage(serialMessage.getBuffer());
      }
docs: Send a message to Bean with a payload.
  @param type      The {@link com.punchthrough.bean.sdk.internal.BeanMessageID} for the message
  @param message   The message payload to send