send_signal for unsigned long values



  • I have a data value that's being presented as an unsigned long, but when I use send_signal, it treats it as a signed long and the value goes negative. How do I get it to present the value as the original unsigned long value?

    for example, 0xf1234567 displays as -249346713 in signals


  • Global Moderator

    Hi,
    You can either send it as a string ('4045620583'), or use a float to represent the value. Sending it as a string will still make it a number in Pybytes.

    Gijs


Log in to reply
 

Pycom on Twitter