nodemcu integer to multi byte conversion
Posted: Fri Apr 17, 2015 8:17 am
Since nodemcu has not struct.pack support how would you convert an integer to its 16 or 32 bit byte array for binary data transfer?
I have found some lua code but they all depend on math functions that are not supported.
Any Ideas? I am missing something obvious?
I have found some lua code but they all depend on math functions that are not supported.
Any Ideas? I am missing something obvious?