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...
Hi,
Can you provide more information about the example?
Where is it and which one?
Are you running one example from the nRF Connect SDK?
Thanks!
Hi,
Can you provide more information about the example?
Where is it and which one?
Are you running one example from the nRF Connect SDK?
Thanks!
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.