How to properly send elapsedMillis via Wire/I2C?


i have project @ house connects 2 arduinos. have master, has sensor attached it, , sends sensor data slave. however, wanted send time , in milliseconds, takes send message via i2c. managed it, can't send via i2c.

if try send elapsedmillis int, -1 result. other classes wont work.

what proper way it?

millisecons, or better, return of function millis() unsigned long. how "change" type of variable int? maybe problem! can post code?


Arduino Forum > Using Arduino > Programming Questions > How to properly send elapsedMillis via Wire/I2C?


arduino

Comments

Popular posts from this blog

Static ip - Raspberry Pi Forums

arduino bug sur secteur, batterie, mais pas en usb?

What voltage is sent to the arduino GND when a transistor is used