Hi,
I’m struggling with this one;
I able to receive a very long string on the status of my HDMI matrix, and what I want to do is extract sections of it to create new/separate payloads to then work with .
Here’s an example of the string produced,
========================================================================================================= =Systems STATUS*= =---------------------------------------- ---------------------------------------------------------------= = Systems information F/W Version : 1.10 = =------------------------------------------------------------------------------------ -------------------= = Power :ON = = Cascading Mode :Disable = =------------------ -------------------------------------------------------------------------------------= = Network Setting Status : = = MAC Address = 7Q:CB:E2:90:05:CA = = Host IP Address = 192.168.111.172 = = Net Mask = 255.255.255.000 = = Router IP Address = 192.168.111.001 = = TCP Port = 0023 = = DHCP : ON = =-------------------------------------------------------------------------------------------------------= = Video Input Setup Status : = = Video Input 01 : EDID = DEFAULT 01, LINK = ON = = Video Input 02 : EDID : User01 EDID, LINK = ON = = Video Input 03 : EDID : User01 EDID, LINK = ON = = Video Input 04 : EDID = DEFAULT 01, LINK = OFF = =-------------------------------------------------- -----------------------------------------------------= = Video Output Setup Status : = = Video Output 01 : Input = 01, Output = ON , LINK = OFF = = Video Output 02 : Input = 01, Output = ON , LINK = ON = = Video Output 03 : Input = 02, Output = ON , LINK = OFF = = Video Output 04 : Inp ut = 01, Output = ON , LINK = OFF = =-------------------------------------------------------------------------------------------------------= = Audio Output Setup Status : = = Audio Output 01 : Analog = Enabled, Digital = Enabled = = Audio Output 02 : Analog = Enabled, Digital = Enabled = = Audio Output 03 : Analog = Enabled, Digital = Enabled = = Audio Output 04 : Analog = Enabled, Digitaled ------------------------------ =*******========================================
I’d like to have created an individual payload for each of the video outputs, one for the text and one focused on the specific output value,
So, for example, 8 individual payloads would be created out of the long string above,
Payload 1 = Video Output 01 : Input = 03
Payload 2 = 3
Payload 3 = Video Output 02 : Input = 02
Payload 4 = 2
Payload 5 = Video Output 03 : Input = 02
Payload 6 = 2
Payload 7 = Video Output 04 : Input = 01
Payload 8 = 1