Skip to main content
. 2021 Oct 30;21(21):7239. doi: 10.3390/s21217239
  •  String[] hubCommandsSerialized = message.Split(’|’);

  •       string[] hubCommandsSerializedDistinct =

  •       hubCommandsSerialized.Distinct().ToArray();

  •    foreach (var cmd in hubCommandsSerializedDistinct)

  •    {

  •         if (cmd != "")

  • {

  •    Thread thread = new Thread(() => ProcessCommand(cmd.Trim(’|’)));

  •    thread.IsBackground = true;

  •    thread.Start();

  •  }

  •  }