Using Spark.publish() with Simple JSON Data

Hi @sylvaing

I think you are very close–the problem is that you are using the address operator & with sprintf where it is not needed. This means that you are printing the addresses of your variables and not their contents. You do need the &'s for sscanf.

    sprintf(message,"%d,%d,%d,%d",buddyLightValue,buddySoundValue,buddyMoveValue,buddyPushValue); 
1 Like