locked
How to split string message RRS feed

  • Question

  • Hi everyone, 

    I have a function connected to IoT hub, and it is recieving messages in string. One string contains from three numerical values divided by coma. I wanted to apply split command to split string in three, however, I got errors. 

    How it can be divided by coma in Azure functions?

    Regards,

    Yerkhan

    Monday, February 18, 2019 2:20 PM

Answers

  • Hi

    I figured what was problem: I tried using String[] instead of var. Issue was resolved. Thanks.

    Regards,

    Yerkhan

    • Marked as answer by Yerkhan Tuesday, February 19, 2019 5:05 AM
    Tuesday, February 19, 2019 5:05 AM

All replies

  • Could you share the code that you are trying and the error that you are seeing?

    Monday, February 18, 2019 4:43 PM
  • Hi

    I figured what was problem: I tried using String[] instead of var. Issue was resolved. Thanks.

    Regards,

    Yerkhan

    • Marked as answer by Yerkhan Tuesday, February 19, 2019 5:05 AM
    Tuesday, February 19, 2019 5:05 AM