I try to take two two-local (GPS coordinates) and send them via the ZigBee API to another ZigBee receiver, but I don’t know how to decompose paired bits into byte arrays, and then recompile them back to their original form after they are transferred.
Basically, I need to turn each double into an array of eight raw bytes, then take this raw data and restore the double again.
Any ideas?
source share