I have a single relay DSD Tech board and when I do the following
I get the following results:
DataString[A00100A1] if OFF
DataString[A00101A2] if ON
Which is perfect for letting me know if the relay is on or off.
I was wondering what you get for 2, 4 or 8 relay switches?
Do you get one line for each switch?
Just trying to write a routine that will work for all boards but only have a single switch/relay board.
Thanks
BobVal
B4X:
Sub Manager_DataAvailable (ServiceId As String, Characteristics As Map)
Dim BC As ByteConverter
For Each DataString() As Byte In Characteristics.Values
Log("DataString[" &BC.HexFromBytes(DataString) &"]")
Next
End Sub
Sub GetRelayInfo
If BLEEntry.IsInitialized And BLEEntry.IsValid Then
manager.ReadData(BLEEntry.ServiceName)
End If
End Sub
I get the following results:
DataString[A00100A1] if OFF
DataString[A00101A2] if ON
Which is perfect for letting me know if the relay is on or off.
I was wondering what you get for 2, 4 or 8 relay switches?
Do you get one line for each switch?
Just trying to write a routine that will work for all boards but only have a single switch/relay board.
Thanks
BobVal