You have no Wire.begin()
in your code (should be in setup()
).
You also have no body to your myHandler()
.
You won’t need #include <application.h>
nor #include <spark_wiring_i2c.h>
. But if you want an include it should be #include <Particle.h>
.
Also, you should use PRIVATE for your publishing call when subscribing for MY_DEVICES
.
1 Like