• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Negative Value. Not Hex Value

    How-To
    1
    2
    849
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jcaballeroa
      last edited by

      Hi Everyone,

      I have created a data source of type HTTP Retriever to make a web request for the status of an equipment. The response of the request is simple of the type:
      result = <value>

      I would like Mango to show me the value obtained in hexadecimal. For this I have configured a Data Point as follows:
      0_1582101233541_ed43f4cf-2467-4530-a20e-ea323b8a20e8-image.png

      According to the Mango documentation, the following can be read:

      *"In addition to the standard DecimalFormat options you can prefix your format with '0x' to imply you want hexidecimal values rendered. This format will truncate the decimal place and requires that you supply the minimum number of places you want rendered. So 0x00 will always render at least 2 values:

      512 = 0x200
      255 = 0xFF
      16.7 = 0x10
      15 = 0x0F"*

      Therefore, if I receive a 15, I expected the value of the data point to take a 0x0F

      However, as seen in the image, the result is a negative value.

      0_1582101156853_32c2c4c3-558a-4996-9c71-b78091933831-image.png

      Am I setting something wrong?

      Thanks!

      1 Reply Last reply Reply Quote 1
      • J
        jcaballeroa
        last edited by

        Any idea?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post