Create a new project in MPLAB® X IDE (for
ex: ATmega4808)
Open MCC by clicking Tools→ Embedded→
MPLAB® Code Configurator or click on the MCC icon
In the Device Resources panel under Libraries dropdown select MQTT
Check below for the Notifications [MCC] tab.
Resolve the notifications step by step.
In GUI select:
Scheduler Service: Foundation
Services Timeout Driver
Transport Service: Wireless
[WINC15XX]
Check the Generate Example
box
Configure dependent Libraries. For example
If Wireless [WINC15XX] library is
selected configure: WINC Library ->SSID, Authentication, Password
If Wired TCPIPLite library is
selected configure TCP/IP Lite Library
Configure MQTT Library GUI. For example:
Host Address: mqtt broker address
Publish Topic: publish topic
The tooltips provide
additional information for each MQTT UI option
Click Generate button
Build the firmware and program the
hardware.
Connect to MQTT Server to observe the data being published by the hardware which acts as
the MQTT Client.
Connect another MQTT Client on the same
broker and subscribe to a topic to receive the messages published over that topic.
The online versions of the documents are provided as a courtesy. Verify all content and data in the device’s PDF documentation found on the device product page.