Using Spark.publish() with Simple JSON Data

Hi @sylvaing

Here some things that are wrong in your code:

  • Are you really using JSON structure in your publish? A JSON is a structure text representation that uses field names in double-quotes, followed by a colon, followed by the data. Your sscanf parameter string does not follow this format at all.

  • As @ScruffR pointed out above, you have four %u’s in your string but are passing five integer addresses.

  • The first integer address is repeated. I cannot imagine that this gives good, repeatable results.

1 Like