This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to reduce power consumption in mqtt_simple project with small keep alive

Hello, Nordic community,

I built and successfully run mqtt_simple project on our MQTT broker using v1.1.0 firmware and NCS.

I edited CONFIG_SERIAL=n in spm and mqtt_simple example.

 

Case 1: I configured and uploaded code on a device with 60 seconds keep-alive. After a successful connection with the MQTT broker, device is ideal(no transmission of messages) for 15 seconds. after 15 seconds I transmitted a message to the device from broker but the message is not received by device instantly it was received after 20-40 seconds. current consumption in this situation was

connecting current : 55-60mA

after connection ideal state (No transmission of messages): 20-25mA

current consumption during message transmission: 35-45mA

Case 2: I configured and uploaded code on a device with 5 seconds keep-alive. After a successful connection with the MQTT broker, device is ideal(no transmission of messages) for 15 seconds. after 15 seconds I transmitted a message to the device from broker and the message received by device instantly. current consumption in this situation was

connecting current : 55-60mA

after connection ideal state (No transmission of messages): 45-50mA

current consumption during message transmission: 45-50mA

how can I achieve the current consumption to 20-25mA with 5 seconds keep-alive?

Thanks,

Nikunj

Parents Reply Children
Related