public static Intent startActivityIntent(Context context, String peripheralMacAddress, UUID characteristicUuid) {
        Intent intent = new Intent(context, AdvancedCharacteristicOperationExampleActivity.class);
        intent.putExtra(DeviceActivity.EXTRA_MAC_ADDRESS, peripheralMacAddress);
        intent.putExtra(EXTRA_CHARACTERISTIC_UUID, characteristicUuid);
        return intent;
    }
This activity allows for connecting to a device and interact with a given characteristic.
<p>
It may be used as a direct replacement for
{@link com.polidea.rxandroidble2.sample.example4_characteristic.CharacteristicOperationExampleActivity}
<p>
When the connection is not established only the "CONNECT" button is active.
When the user clicks on the "CONNECT" button the connection is established and other buttons are enabled according to the properties
of the characteristic.
Subsequent clicks on the "CONNECT" button (whose name will change according to the connection state) will close the connection.
<p>
When the connection is open other buttons are activated in regards of the characteristic's properties.
If the user clicks on "READ" a characteristic read is performed and the output is set on the TextView and EditText or a Snackbar is shown
in case of an error. "WRITE" clicks work the same as read but a write command is performed with data from the EditText.
If the characteristic has both of PROPERTY_NOTIFY and PROPERTY_INDICATE then only one of them is possible to be set at any given time.
Texts on notification and indication buttons will change accordingly to the current state of the notifications / indications.
sample/src/main/java/com/polidea/rxandroidble2/sample/example4_characteristic/advanced/AdvancedCharacteristicOperationExampleActivity.java