title: How to use elements of an array?
body: <p>I am taking string data from serial port using these commands:</p>
  
  <pre><code>int k;
  for(k=0;k&lt;100;k++){
    buf[0]=0;
    HAL_UART_Receive(&amp;huart2,buf,1, 100);
    aRxBuffer[k]=buf[0];
  }
  HAL_UART_Transmit(&amp;huart2,aRxBuffer, 100, 100);
  </code></pre>
  
  <p>and here is reading message:</p>
  
  <pre><code>#TPS#TP10#47#100#1.02#3.3#1.04# 
  </code></pre>
  
  <p>I want to use datas between two "#" symbols.For example;
  - TPS is my method name I want to use this data like this</p>
  
  <pre><code>if(method=='TPS'){
    dosomething();
  }
  </code></pre>
  
  <p>And also 47 is my value of resistance. I will use this value in some calculations.But it is string not integer.</p>
  
  <p>How can I compare my data in If Statement? </p>
  
  <p>How can I transform my data from string to ingeter?</p>