# \[Solved\] No data/payload with connected device

**URL:** <https://forums.losant.com/t/solved-no-data-payload-with-connected-device/446>\
**Category:** Help\
**Created:** [March 15, 2017, 11:53pm UTC](https://forums.losant.com/t/solved-no-data-payload-with-connected-device/446 "2017-03-15T23:53:34Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![anaptfox](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/anaptfox/32/873_2.png) [@anaptfox](https://forums.losant.com/u/anaptfox)\
**Post date:** [March 21, 2017, 5:28pm UTC](https://forums.losant.com/t/solved-no-data-payload-with-connected-device/446/10 "2017-03-21T17:28:42Z")

</div>

The two sensors look the same ( in terms of configuration ). However, this is a problem with a library the firmware is using. So, it’s not a problem with the code you have, just the library.

Here is the problem: MQTT has a payload memory limit. You are sending humidity, tempC, tempF, heatIndexC, and heatIndexF. The default memory limit is not enough to support all of these values. The error is also not apparent, which makes it hard to track.

You can fix this in two ways:

1. So, you can only send the data you need. You can edit the `void report` function to seen one or two values.

2. Or you can increase the memory limit:

> [@Sending commands with larger payloads](https://forums.losant.com/t/sending-commands-with-larger-payloads/135?source_topic_id=446):
>
> If you’re using a Losant Builder Kit or the losant-sdk-arduino on another board, you’ll likely hit the default mqtt packet size limit defined in the underlying pubsubclient library. Unfortunately the packet is blocked before reaching any of your code, so it’s hard to debug. It simply looks like the command was never received. For example: { "foo" : "bar" } works, whereas { "somethingLarger" : "with a longer value" } doesn’t work. This is because the default packet size is 128, which provides en…

---

_[View the full topic](https://forums.losant.com/t/solved-no-data-payload-with-connected-device/446)._
