Transmitting data to MQTT Broker

Hi, I'm currently trying to send real time analog sensor data to hivemq broker using nrf9160 DK, is it possible to provide source code for this kind of project? I've attached my current code below as well. Thanks

mqtt_simple_sensor.zip

Related