This is the final code I used. I do get an error message once the app connects to Bluetooth saying that there is not enough items to add to the list but that message can just be ignored and the app will work fine after it receives some data.