Hi,
Assume you are using example mqtt_simple.
You shall set the server name to config variable CONFIG_MQTT_BROKER_HOSTNAME in prj.conf. And make sure CONFIG_MQTT_BROKER_HOSTNAME is not commented in this file.
Or you can set it to MQTT_BROKER_HOSTNAME in Kconfig.
Thanks your answer
i dont see MQTT_BROKER_HOSTNAME in confg.just see config using ipv6,port,topic to access mqtt bro...
Thank your support.I use example in IoT mqtt to do this and try to find host_name but i dont see in library.Now i try to connect nrf52 dev board with W5100 first.After i will find the way to send data into MQTT.I will show it for you late.
Thank you so much!
Sure, no problem!
Hi,
You can set m_broker_addr to your mqtt server IP address. Please note that this is an IPv6 address format.
In function app_mqtt_connect(), you can see how mqtt is setup for client.
this mean i need config ipv6 and replace ipv6_addr_t???
Thankss
Yes.
Yes.