Dim bc As ByteConverter
Dim KeyCode() As Byte
Dim result() As Int
Dim results As String = ""
For Each ServiceId As String In Characteristics.Keys
KeyCode = Characteristics.Get(ServiceId) ' Get the byte array from the characteristic
result = bc.IntsFromBytes(KeyCode) ' Convert byte array to an array of integers
' Append all integers from the result to the results string
For Each val As Int In result
results = results & val & ", "
Next
Next
' Update the label text with all results, trimming the trailing comma
If results.Length > 0 Then
results = results.SubString2(0, results.Length - 2)
End If
lblStat.Text = results