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

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code