# Getting Particle publish to receive proper Data

**URL:** <https://community.particle.io/t/getting-particle-publish-to-receive-proper-data/51135>\
**Category:** Troubleshooting\
**Created:** [July 14, 2019, 6:57pm UTC](https://community.particle.io/t/getting-particle-publish-to-receive-proper-data/51135 "2019-07-14T18:57:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![RWB](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rwb/32/22599_2.png) [@RWB](https://community.particle.io/u/RWB)\
**Post date:** [July 14, 2019, 7:16pm UTC](https://community.particle.io/t/getting-particle-publish-to-receive-proper-data/51135/2 "2019-07-14T19:16:22Z")

</div>

This is what I had to learn to build proper strings to combine lots of data into one Particle publish event.

> [@Storing very infrequent data while Photon offline (not cloud connected)](https://community.particle.io/t/storing-very-infrequent-data-while-photon-offline-not-cloud-connected/34394/13):
>
> @charrold303 The C-String used to confuse me also but after playing around a bit I now see how simple they are to work with to format data before sending it in a Particle Publish. Here is how I setup a C-String (Char array) in my code to send GPS Data & Battery Voltage to Losant. First define your Char Array and change publishStateString to what ever you want it to be: [image] The 256 is the max byte size of the array which is the max size of a Particle Publish payload +1 Now I use the sn…

---

_[View the full topic](https://community.particle.io/t/getting-particle-publish-to-receive-proper-data/51135)._
