code: public void stopAdvertising() {
          if (!mStarted) {
              LogManager.d(TAG, "Skipping stop advertising -- not started");
              return;
          }
          LogManager.d(TAG, "Stopping advertising with object %s", mBluetoothLeAdvertiser);
          mAdvertisingClientCallback = null;
          try {
              mBluetoothLeAdvertiser.stopAdvertising(getAdvertiseCallback());
          }
          catch (IllegalStateException e) {
              LogManager.w(TAG, "Bluetooth is turned off. Transmitter stop call failed.");
          }
          mStarted = false;
      }
docs: Stops this beacon from advertising