Constructs a field with the name of the device.
If shortened is true, then the name is not complete. The complete name may be retrieved by reading the device name characteristic after the connection has been established using GATT.
It might also be allowed to have an incomplete name in the advertising data, and the complete name in the scan response. The specification isn't clear on this.
If an incomplete name is provided, it must be a prefix of the complete name.
The name field is optional and may only be present once.