NRF9160 MQTT SIMPLE ERROR

Hi, I am using NRF9160 than I am using mqtt_simple example. I modified it. I want to send 4200 byte to mqtt broker but I get error. error is:<err> mqtt_simple: Publish failed: -128 My proj file:

CONFIG_NET_RX_STACK_SIZE=4256
CONFIG_NET_TX_STACK_SIZE=4256
CONFIG_NET_BUF_DATA_SIZE=4256
CONFIG_NET_BUF_USER_DATA_SIZE=4256
CONFIG_NRF_MODEM_LIB_SHMEM_TX_SIZE=4256
CONFIG_MQTT_MESSAGE_BUFFER_SIZE=4256
CONFIG_MQTT_PAYLOAD_BUFFER_SIZE=4256
my mqtt buffer part:
* Buffers for MQTT client. */
static uint8_t rx_buffer[1024];
static uint8_t tx_buffer[4256];
static uint8_t payload_buf[1024];
How can I send 4200 byte to broker?
Parents Reply Children
Related