Skip to content
Discussion options

You must be logged in to vote

Then each value could have its own characteristic

You might be better off just outputtiing on the same characteristic, but tagging your output line:

  • JSON.stringify({ type: "val1", v: val });
  • JSON.stringify({ type: "val2", v: val });

then it's easy enough to pull apart at the other end, and very extensible.

How can I achieve this based on the code below?

You actually want to use the code you had previously where UUIDs are explicitly defined, and just replace the UUIDs in it with your own (you can find 'random uuid generators' online) and replace chars 5..8 with 0001/0002/etc like is done already.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@janrakete
Comment options

@gfwilliams
Comment options

@janrakete
Comment options

@gfwilliams
Comment options

Answer selected by janrakete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants