Skip to content

Conversation

@sborsay
Copy link

@sborsay sborsay commented Nov 12, 2019

This adds a typical, randomized JSON package using strncpy of a variables to a data buffer with randomized variables and device uptime. This modification to the excellent single page AWS IoT sketch allows properly formatted JSON data to be manipulated on AWS through the IoT broker rather then just using a simple string. As noted on the sketch you can also experiment with other buffer techniques like sprintf, strcpy, strncpy, or implement the ArduinoJSON library.

Sketch Author: Anthony Elder
Sketch JSON modification: Stephen Borsay (https://github.com/sborsay)

This adds a typical, randomized JSON package using strncpy of a variables to a data buffer with randomized variables and device uptime.  This modification to the excellent single page AWS IoT sketch allows properly formatted JSON data to be manipulated on AWS through the IoT broker rather then just using a simple string.  As noted on the sketch you can also experiment with other buffer techniques like sprintf, strcpy, strncpy, or implement the ArduinoJSON library.

Sketch Author: Anthony Elder 
Sketch JSON modification: Stephen Borsay (https://github.com/sborsay)
@sborsay
Copy link
Author

sborsay commented Nov 12, 2019

Adds randomized JSON data to sketch. Should be held as a separate implementation and not meant to supersede or replace original.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant