Skip To The Main Content
Forums / MeshWorks Software / Meshworks string.atoi issue

Meshworks string.atoi issue

3 posts, 0 answered
  1. pve avatar
    pve
    5 posts
    Registered:
    21 Sep 2015
    28 Oct 2015
    Hello,

    I have met with some strange behaviour of the string.atoi() function. When I have for example variable:
    val = "10"
    and call string.atoi(val, 16), I will get 16. Thats fine. But if I pass the "A" string and call the same function atoi() returns zero.
    I have tried with all possible inputs:
    for "1ef" it will return "256" while it has to be "495"
    for "ef" it will return "0"
    and for binary string it also does not work.
  2. DPeterson avatar
    DPeterson
    7 posts
    Registered:
    03 Mar 2015
    09 Nov 2015 in reply to pve
    We have looked into the issue and there does indeed appear to be a bug when the string variable is a non-numeric character. We will resolve this in our next release.

    Thank you for bringing it to our attention and we apologize for any inconvenience this may cause. 
  3. pve avatar
    pve
    5 posts
    Registered:
    21 Sep 2015
    11 Nov 2015 in reply to DPeterson
    Thank you for your reply.
    Could you tell me if there any way to upgrade internal firmware in Sensor Nodes and gateways exsists?