Add this line to your table:
{0x7f000002 "MyData" "MyData" 0 gMyCharacteristic}
Now you are remapping 0x7f000002 which is the UUID for the User Name characteristic. Remember, you have provided text for (in order) the Summary Pane and the Detail Pane. We don’t cover the 0 here. Finally, there is that handler GROUP.
Now add this code to your file below the table.
GROUP gMyCharacteristic
{
FIELD MyCharacteristic (ToEndOfLayer) (StringOfAscii) "MyData"
}
Reload the decoders. You have now taken over complete control of the decoding of the 0x7f000001 characteristic.
At this point, your file should look like this:
TABLE tMyTable APPENDS_AND_OVERWRITES GATT_UUIDs
{ 0x7f000001 "My Service" "My Service" }
{ 0x7f000002 "MyData" "MyData" 0 gMyCharacteristic }
ENDTABLE
GROUP gMyCharacteristic
{
FIELD MyCharacteristic (ToEndOfLayer) (StringOfAscii) "MyData"
}