The log command prints out a value for HLTt_f(0) so it should be a legit value to compare to. The error say's I am missing a parameter, but I have no idea what it is.
B4X:
Sub AStream_NewData (Buffer() As Byte)
Dim s As String = BytesToString(Buffer, 0 ,Buffer.Length, "utf8")
txtLogs.Text = txtLogs.Text & BytesToString(Buffer, 0, Buffer.Length, "utf8")
If s.StartsWith("HLT") = True Then
Dim hlt_s As String = BytesToString(Buffer, 3, Buffer.Length - 3, "utf8")
lblHLTtemp.Text = hlt_s
Dim HLTh_f() As Float = bc.FloatsFromBytes(bc.StringToBytes(txtHLThigh.PromptText, "utf8"))
Dim HLTl_f() As Float = bc.FloatsFromBytes(bc.StringToBytes(txtHLTlow.PromptText, "utf8"))
Dim HLTt_f() As Float = bc.FloatsFromBytes(bc.StringToBytes(hlt_s, "utf8"))
Log(HLTt_f(0))
Log(HLTh_f(0))
Log(HLTl_f(0))
Select HLTt_f(0)
Case > HLTh_f
lblHLTtemp.TextColor = fx.Colors.Red
Case < HLTl_f
lblHLTtemp.TextColor = fx.Colors.Blue
Case Else
lblHLTtemp.TextColor = fx.Colors.Black
End Select
End If
End Sub