user86235: Using this code - advertisedDevice.getServiceDataUUID().toString().c_str()); returns the following string -
0000feaa-0000-1000-8000-00805f9b34fb
How can I adjust the code to do that it omits the first nine characters leaving only -
0000-1000-8000-00805f9b34fb
Thank you.

user60431: Note: Even if this question is about general C++ programming, this might help other Arduino users, too. Better ask at StackOverflow the next time. ;-)
The result of your chain of method calls returns a pointer to non-writable chars. You can add any offset to this, in the range from 0 to the number of characters.
In your case:
const char* result = advertisedDevice.getServiceDataUUID().toString().c_str() + 9;


86235: <p>Using this code - <code>advertisedDevice.getServiceDataUUID().toString().c_str());</code> returns the following string -
<code>0000feaa-0000-1000-8000-00805f9b34fb</code></p>
<p>How can I adjust the code to do that it omits the first nine characters leaving only -
<code>0000-1000-8000-00805f9b34fb</code></p>
<p>Thank you.</p>
 60431: <p><em>Note: Even if this question is about general C++ programming, this might help other Arduino users, too. Better ask at <a href="https://stackoverflow.com/">StackOverflow</a> the next time. ;-)</em></p>
<p>The result of your chain of method calls returns a pointer to non-writable <code>char</code>s. You can add any offset to this, in the range from 0 to the number of characters.</p>
<p>In your case:</p>
<pre class="lang-cpp prettyprint-override"><code>const char* result = advertisedDevice.getServiceDataUUID().toString().c_str() + 9;
</code></pre>
