//Important to note, a "Java long" is not the same as a arduino long//Because javas primitive types are all signed you need to use a type//larger than you want on the arduino (you could use a int, but it would//behave oddly when working with it in java)long timeValue = 1234567890;//This splits the value into individual bytesbyte b1 = (timeValue>>32)&0xFF;byte b2 = (timeValue>>16)&0xFF;byte b3 = (timeValue>>8)&0xFF;byte b4 = timeValue&0xFF;serial.write(b1);serial.write(b2);serial.write(b3);serial.write(b4);
unsigned long timeValue = 0;//ReassembletimeValue |= Serial.read()<<32;timeValue |= Serial.read()<<16;timeValue |= Serial.read()<<8;timeValue |= Serial.read();
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16