Add and Send Multiple Bytes of Data Using AdvertisingDataBuilder


I am working on some code for a Nano 33 BLE using the mbed os and cannot find any examples of adding and advertising multiple bytes of data using the AdvertisingDataBuilder. I have several sensors such as temperature, humidity, door and battery voltage and looking to advertise this data without making a connection and including the data in the advertising packet sent during a scan. I am using an example that allows me to set coded PHY to increase power. The sensor values will have more than one byte each and I would like to know how data for each sensor can be added and updated to the payload using the AdvertisingDataBuilder.