Hi i want to split these values
msg.payload : string[27]
"RELAY-STATE-255,0,0,0,0,OK" the 4 zeros represent each a decimal number from 0-255. i want to isolate these 4 zeros . i managed this with $substring(payload, -9, 1 ) for example . but if the zero becomes lets say a 16 this method does not work .
not a programmer . just trying to seperate these values to set my relays in proper status