Forums : Parsing Response from a serial command
This page last changed on Jun 22, 2014 by technicallygky.
I have a CE Labs HDMI Matrix connected via serial port and would like to figure out how to parse through the response it sends for status to be able to setup sensors up for what input is being used by each output. When I sent the command "ST" it responds with the status of all sources and what is going to each output in this format:
SOURCE1 ON SOURCE2 ON SOURCE3 OFF SOURCE4 OFF SOURCE5 OFF SOURCE6 OFF SOURCE7 OFF SOURCE8 OFF
Could anyone give me a pointer on how I can parse through this to provide 8 sensors with correct status for the 8 outputs?
|Document generated by Confluence on Jun 05, 2016 09:37|