{"id":7789,"date":"2020-02-03T11:25:43","date_gmt":"2020-02-03T10:25:43","guid":{"rendered":"http:\/\/support.ilevia.com\/?p=7789"},"modified":"2024-11-28T17:04:08","modified_gmt":"2024-11-28T16:04:08","slug":"topic-and-payload","status":"publish","type":"post","link":"https:\/\/support.ilevia.com\/en\/all\/topic-and-payload\/","title":{"rendered":"Topic and payload"},"content":{"rendered":"[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.16&#8243; custom_padding=&#8221;0px||0px|||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.17.0&#8243; custom_margin=&#8221;0px|0px|0px|0px|false|false&#8221; custom_padding=&#8221;0px||0px||false|false&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.17.0&#8243; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221;]\n<h1 style=\"text-align: center;\">HOW DO THE PAYLOAD AND THE TOPICS WORK?<\/h1>\n[\/et_pb_text][et_pb_divider _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_divider][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;0px|auto||auto|false|false&#8221; custom_padding=&#8221;0px||0px|||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.27.4&#8243; custom_margin=&#8221;0px||0px||false|false&#8221; custom_padding=&#8221;||0px|||&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221;]\n<blockquote>\n<h3><strong>TOPICS<\/strong><\/h3>\n<\/blockquote>\n<p>The topics are: read, event, write and response.<br \/> Each topic has a different type of message that the MQTT broker uses to filter messages for each connected client, the topics are composed in levels divided by slash.<\/p>\n<p><b>Example<\/b>: home\/livingroom\/light<\/p>\n<blockquote>\n<p><strong>These are the four topics which we will subscribe to at the end of the configuration:<\/strong><\/p>\n<\/blockquote>\n<p><strong>Topic read<\/strong>: Is used\u00a0to retreve the status of the devices.<\/p>\n<p><strong>Topic response<\/strong>: Is the device&#8217;s reply to the automation server read request.<\/p>\n<p><strong>Topic write<\/strong>: This topic is used to set the value of\u00a0 a device parameter.<\/p>\n<p><strong>Topic event<\/strong>: This topic display the status of the device in case it changes.<\/p>\n<blockquote><\/blockquote>\n<blockquote><\/blockquote>\n<blockquote><\/blockquote>\n[\/et_pb_text][et_pb_divider _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;40px||-15px||false|false&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_divider][et_pb_text _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;30px||40px||false|false&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; sticky_enabled=&#8221;0&#8243;]\n<blockquote>\n<h4><strong>Topic Response<\/strong><\/h4>\n<\/blockquote>\n<p>The &#8220;<strong>Topic Response<\/strong>&#8221; is needed to reply the read mesasge coming from the device.<\/p>\n<p><strong>Example:<\/strong> First connection to retrieve the current status of the devices.<\/p>\n<p>in this case the script is catching the json coming from the device and getting the status, in our case &#8220;<strong>ison<\/strong>&#8220;.<\/p>\n[\/et_pb_text][et_pb_image src=&#8221;https:\/\/support.ilevia.com\/wp-content\/uploads\/2020\/11\/Script_response-1.png&#8221; title_text=&#8221;Script_response&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;50px||50px||false|false&#8221; box_shadow_style=&#8221;preset2&#8243; global_colors_info=&#8221;{}&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;] By clicking this <a href=\"https:\/\/support.ilevia.com\/wp-content\/uploads\/2020\/11\/Sricpt_response.txt\" target=\"_blank\" rel=\"noopener noreferrer\">link <\/a>you will able to see how the script is set up.<\/p>\n[\/et_pb_text][et_pb_divider _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;40px||-15px||false|false&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_divider][\/et_pb_column][\/et_pb_row][et_pb_row module_id=&#8221;topic-write&#8221; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;|auto||auto|false|false&#8221; custom_padding=&#8221;30px||0px||false|false&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;-16px||40px||false|false&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; sticky_enabled=&#8221;0&#8243;]\n<blockquote>\n<h4><strong>Topic Write<\/strong><\/h4>\n<\/blockquote>\n<p>The &#8220;<strong>Topic Write<\/strong>&#8221; sends the command to the device when the component in the EVE system changes.<\/p>\n<p><strong>Example:<\/strong> When the user change a state of a switch from the App <a href=\"\/app-interface\/eve-remote-plus\" target=\"_blank\" rel=\"noopener\">EVE Remote Plus<\/a>.<\/p>\n<p>Each device may requires a different type of message.<\/p>\n<p>You can create the payload of the MQTT message\u00a0 using a piece of javascript that starts from the value of EVE system component and prepare the message that your device need in the right format, pure text, JSON or any other.<\/p>\n<blockquote>\n<h4><strong>Topic Write data sending<\/strong><\/h4>\n<\/blockquote>\n<p>The\u00a0 <b>Switch<\/b>\u00a0and the other binary components comes with a value of 0 and 1 in the <b>payload<\/b>\u00a0variable.<\/p>\n<p>You can use this script to create your message based on its value:<\/p>\n[\/et_pb_text][et_pb_image src=&#8221;https:\/\/support.ilevia.com\/wp-content\/uploads\/2020\/11\/script_write.png&#8221; title_text=&#8221;script_write&#8221; show_in_lightbox=&#8221;on&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;50px||50px||false|false&#8221; box_shadow_style=&#8221;preset2&#8243; global_colors_info=&#8221;{}&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]\n<p>By clicking this <a href=\"https:\/\/support.ilevia.com\/wp-content\/uploads\/2020\/11\/Script_write_switch.txt\" target=\"_blank\" rel=\"noopener noreferrer\">link<\/a> you will able to see how the script is set up.<\/p>\n[\/et_pb_text][et_pb_divider _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;40px||-15px||false|false&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_divider][et_pb_text _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;30px||40px||false|false&#8221; global_colors_info=&#8221;{}&#8221;]\n<p>Inside the EVE System the <strong>percentage<\/strong> is processed as a value from 0 to 1, the components that uses the percentage such as the <a href=\"https:\/\/support.ilevia.com\/configuration-software-en\/slider\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Slider<\/strong><\/a> or <a href=\"https:\/\/support.ilevia.com\/configuration-software-en\/changeable-value\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Changeable Value<\/strong><\/a> will have this configuration set up as its write topic.<\/p>\n<p>You can use this script to create your message based on its value:<\/p>\n[\/et_pb_text][et_pb_image src=&#8221;https:\/\/support.ilevia.com\/wp-content\/uploads\/2020\/11\/script_wrtie_percentage.png&#8221; title_text=&#8221;script_wrtie_percentage&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;50px||50px||false|false&#8221; box_shadow_style=&#8221;preset2&#8243; global_colors_info=&#8221;{}&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]\n<p>By clicking this <a href=\"https:\/\/support.ilevia.com\/wp-content\/uploads\/2020\/11\/Script_write_switch.txt\" target=\"_blank\" rel=\"noopener noreferrer\">link<\/a> you will able to see how the script is set up.<\/p>\n[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;30px||||false|false&#8221; custom_padding=&#8221;||||false|false&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_divider _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;||10px||false|false&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_divider][et_pb_text _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;0px||40px||false|false&#8221; global_colors_info=&#8221;{}&#8221;]\n<p>To send <strong>RGB<\/strong> information the configuration is the following, we will use the component <strong><a href=\"https:\/\/support.ilevia.com\/configuration-software-en\/rgb-light\/\" target=\"_blank\" rel=\"noopener noreferrer\">RGB light<\/a><\/strong> to set up the correct MQTT rgb configuration.<\/p>\n[\/et_pb_text][et_pb_image src=&#8221;https:\/\/support.ilevia.com\/wp-content\/uploads\/2020\/11\/script_rgb.png&#8221; title_text=&#8221;script_rgb&#8221; show_in_lightbox=&#8221;on&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;50px||50px||false|false&#8221; box_shadow_style=&#8221;preset2&#8243; global_colors_info=&#8221;{}&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]\n<p>By clicking this <a href=\"https:\/\/support.ilevia.com\/wp-content\/uploads\/2020\/11\/Script_write_rgb.txt\" target=\"_blank\" rel=\"noopener noreferrer\">link<\/a> you will able to see how the script is set up.<\/p>\n[\/et_pb_text][et_pb_divider _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;40px||-15px||false|false&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_divider][\/et_pb_column][\/et_pb_row][et_pb_row module_id=&#8221;event-topic&#8221; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;|auto||auto|false|false&#8221; custom_padding=&#8221;0px|||||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text module_id=&#8221;event-topic&#8221; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;0px||40px||false|false&#8221; global_colors_info=&#8221;{}&#8221;]\n<blockquote>\n<h4><strong>Topic Event<\/strong><\/h4>\n<\/blockquote>\n<p>The &#8220;<strong>Topic Event&#8221;,\u00a0<\/strong>this topic will report a change status coming from the device.<br \/>i.e: A power meter reports the power consumed each time the value changes.<\/p>\n<p>In case of a <strong>temperature<\/strong>, <strong>power<\/strong>, <strong>energy<\/strong> etc, the components choosen to display this values is the <a href=\"https:\/\/support.ilevia.com\/configuration-software-en\/info\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Info<\/strong> <\/a>component. as you can see from the image below the script will just get the value coming from the device.<\/p>\n<p>You can use this script to create your message based on its value:<\/p>\n<p>To report a <strong>switch status<\/strong>, it will be needed build the script as it follow.<\/p>\n<p>In this case the scrpt will gather the payload coming from the device and so reporting the current status of the device.<\/p>\n[\/et_pb_text][et_pb_image src=&#8221;https:\/\/support.ilevia.com\/wp-content\/uploads\/2020\/11\/script_event.png&#8221; title_text=&#8221;script_event&#8221; show_in_lightbox=&#8221;on&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;50px||50px||false|false&#8221; box_shadow_style=&#8221;preset2&#8243; global_colors_info=&#8221;{}&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]\n<p>By clicking this <a href=\"https:\/\/support.ilevia.com\/wp-content\/uploads\/2020\/11\/Sricpt_event_info.txt\" target=\"_blank\" rel=\"noopener noreferrer\">link<\/a> you will able to see how the script is set up.<\/p>\n[\/et_pb_text][et_pb_image src=&#8221;https:\/\/support.ilevia.com\/wp-content\/uploads\/2020\/11\/script_event_switch.png&#8221; title_text=&#8221;script_event_switch&#8221; show_in_lightbox=&#8221;on&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;50px||50px||false|false&#8221; box_shadow_style=&#8221;preset2&#8243; global_colors_info=&#8221;{}&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]\n<p>By clicking this <a href=\"https:\/\/support.ilevia.com\/wp-content\/uploads\/2020\/11\/Script_event_switch.txt\" target=\"_blank\" rel=\"noopener noreferrer\">link<\/a> you will able to see how the script is set up.<\/p>\n[\/et_pb_text][et_pb_divider _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;40px||-15px||false|false&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_divider][et_pb_text _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;30px||||false|false&#8221; global_colors_info=&#8221;{}&#8221;]\n<blockquote>\n<h3><strong>PAYLOAD<\/strong><\/h3>\n<\/blockquote>\n<p>A payload is a piece of code that contains a javascript function.<br \/>\nFor each topic, a javascript function is executed to process the topic payload.<\/p>\n<p><strong>json string example<\/strong>:<\/p>\n<p>var data = JSON.parse(payload);var color = {&#8220;mode&#8221;:&#8221;color&#8221;,&#8221;red&#8221;:data.r,&#8221;green&#8221;:data.g,&#8221;blue&#8221;:data.b}; return JSON.stringify(color);[\/et_pb_text][et_pb_image src=&#8221;https:\/\/support.ilevia.com\/wp-content\/uploads\/2019\/12\/payload-1.png&#8221; alt=&#8221;payload example&#8221; title_text=&#8221;payload example&#8221; show_in_lightbox=&#8221;on&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.27.4&#8243; custom_margin=&#8221;50px||50px||false|false&#8221; custom_padding=&#8221;||||false|false&#8221; box_shadow_style=&#8221;preset2&#8243; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_image][et_pb_divider _builder_version=&#8221;4.18.0&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_divider][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.18.0&#8243; _module_preset=&#8221;default&#8221; custom_padding=&#8221;||||false|false&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_cta title=&#8221;Discover more about our Shelly dedicated solution.&#8221; button_url=&#8221;https:\/\/zfrmz.com\/c8bT6AKFYgE9PARNCiIK&#8221; url_new_window=&#8221;on&#8221; button_text=&#8221;Get in touch with us.&#8221; admin_label=&#8221;Call To Action&#8221; _builder_version=&#8221;4.18.0&#8243; custom_margin=&#8221;||||false|false&#8221; custom_padding=&#8221;84px||84px||false|false&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_cta][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; inner_shadow=&#8221;on&#8221; _builder_version=&#8221;4.18.0&#8243; background_color=&#8221;#fafafa&#8221; parallax=&#8221;on&#8221; min_height=&#8221;280px&#8221; custom_margin=&#8221;30px||||false|false&#8221; locked=&#8221;off&#8221; collapsed=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row module_class=&#8221; et_pb_row_fullwidth&#8221; _builder_version=&#8221;4.16&#8243; width=&#8221;91%&#8221; width_tablet=&#8221;80%&#8221; width_last_edited=&#8221;off|desktop&#8221; max_width=&#8221;90%&#8221; max_width_tablet=&#8221;80%&#8221; max_width_phone=&#8221;&#8221; max_width_last_edited=&#8221;on|desktop&#8221; custom_padding=&#8221;30px|0px|22.8594px|0px|false|false&#8221; make_fullwidth=&#8221;on&#8221; collapsed=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221;][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]\n<h1 style=\"text-align: center;\">Still Need Help? Our Customer Service Is Here For You.<\/h1>\n[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_button button_url=&#8221;https:\/\/support.ilevia.com\/contacts\/&#8221; button_text=&#8221;Ask For Help&#8221; button_alignment=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; custom_button=&#8221;on&#8221; button_text_size=&#8221;20px&#8221; button_text_color=&#8221;#1e84f4&#8243; button_bg_color=&#8221;#FFFFFF&#8221; button_border_width=&#8221;2px&#8221; button_border_color=&#8221;#1e84f4&#8243; button_font=&#8221;||||||||&#8221; button_use_icon=&#8221;off&#8221; custom_margin=&#8221;||||false|false&#8221; custom_margin_tablet=&#8221;&#8221; custom_margin_phone=&#8221;|0px|||false|false&#8221; custom_margin_last_edited=&#8221;on|phone&#8221; box_shadow_style=&#8221;preset2&#8243; box_shadow_spread=&#8221;-80px&#8221; global_colors_info=&#8221;{}&#8221; box_shadow_spread__hover=&#8221;0px&#8221; box_shadow_spread__hover_enabled=&#8221;on&#8221;][\/et_pb_button][et_pb_button button_url=&#8221;https:\/\/support.ilevia.com\/contacts\/&#8221; button_text=&#8221;Make a suggestion&#8221; button_alignment=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; custom_button=&#8221;on&#8221; button_text_size=&#8221;20px&#8221; button_text_color=&#8221;#1e84f4&#8243; button_bg_color=&#8221;#FFFFFF&#8221; button_border_width=&#8221;2px&#8221; button_border_color=&#8221;#1e84f4&#8243; button_use_icon=&#8221;off&#8221; custom_margin=&#8221;|||0px|false|false&#8221; custom_margin_tablet=&#8221;&#8221; custom_margin_phone=&#8221;|||0px|false|false&#8221; custom_margin_last_edited=&#8221;on|phone&#8221; custom_padding=&#8221;|||25px|false|false&#8221; box_shadow_style=&#8221;preset2&#8243; box_shadow_spread=&#8221;-80px&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221; box_shadow_spread__hover=&#8221;0px&#8221; box_shadow_spread__hover_enabled=&#8221;on&#8221;][\/et_pb_button][\/et_pb_column][\/et_pb_row][\/et_pb_section]\n","protected":false},"excerpt":{"rendered":"<p>HOW DO THE PAYLOAD AND THE TOPICS WORK? TOPICS The topics are: read, event, write and response. Each topic has a different type of message that the MQTT broker uses to filter messages for each connected client, the topics are composed in levels divided by slash. Example: home\/livingroom\/light These are the four topics which we [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","inline_featured_image":false,"footnotes":""},"categories":[1,24],"tags":[],"class_list":["post-7789","post","type-post","status-publish","format-standard","hentry","category-all","category-shelly"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Topic and payload Ilevia Support |<\/title>\n<meta name=\"description\" content=\"An accurate explenation of what are the topics and the payload and how they work inside the MQTT protocol.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/support.ilevia.com\/en\/all\/topic-and-payload\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Filippo Amabilia\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/all\\\/topic-and-payload\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/all\\\/topic-and-payload\\\/\"},\"author\":{\"name\":\"Filippo Amabilia\",\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/#\\\/schema\\\/person\\\/08a8d13dee0bc9f160da55efe97b7959\"},\"headline\":\"Topic and payload\",\"datePublished\":\"2020-02-03T10:25:43+00:00\",\"dateModified\":\"2024-11-28T16:04:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/all\\\/topic-and-payload\\\/\"},\"wordCount\":1990,\"publisher\":{\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/#organization\"},\"articleSection\":[\"All Archives\",\"Shelly\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/all\\\/topic-and-payload\\\/\",\"url\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/all\\\/topic-and-payload\\\/\",\"name\":\"Topic and payload Ilevia Support |\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/#website\"},\"datePublished\":\"2020-02-03T10:25:43+00:00\",\"dateModified\":\"2024-11-28T16:04:08+00:00\",\"description\":\"An accurate explenation of what are the topics and the payload and how they work inside the MQTT protocol.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/all\\\/topic-and-payload\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/support.ilevia.com\\\/en\\\/all\\\/topic-and-payload\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/all\\\/topic-and-payload\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Shelly\",\"item\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/shelly\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Topic and payload\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/\",\"name\":\"Ilevia Support\",\"description\":\"Assistance &amp; Technical Guides\",\"publisher\":{\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/#organization\",\"name\":\"Ilevia\",\"url\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"http:\\\/\\\/support.ilevia.com\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/ilevia.png\",\"contentUrl\":\"http:\\\/\\\/support.ilevia.com\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/ilevia.png\",\"width\":500,\"height\":500,\"caption\":\"Ilevia\"},\"image\":{\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/ileviaofficial\\\/\",\"https:\\\/\\\/www.instagram.com\\\/ilevia_official\\\/\",\"https:\\\/\\\/it.linkedin.com\\\/company\\\/ilevia\\\/\",\"https:\\\/\\\/www.youtube.com\\\/ilevia\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/#\\\/schema\\\/person\\\/08a8d13dee0bc9f160da55efe97b7959\",\"name\":\"Filippo Amabilia\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0e396093874891309dc46571e6eec478bc2a5080be4f76a70e1ca9deb9f99eec?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0e396093874891309dc46571e6eec478bc2a5080be4f76a70e1ca9deb9f99eec?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0e396093874891309dc46571e6eec478bc2a5080be4f76a70e1ca9deb9f99eec?s=96&d=mm&r=g\",\"caption\":\"Filippo Amabilia\"},\"url\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/author\\\/filippo-amabilia\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Topic and payload Ilevia Support |","description":"An accurate explenation of what are the topics and the payload and how they work inside the MQTT protocol.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/support.ilevia.com\/en\/all\/topic-and-payload\/","twitter_misc":{"Written by":"Filippo Amabilia","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/support.ilevia.com\/en\/all\/topic-and-payload\/#article","isPartOf":{"@id":"https:\/\/support.ilevia.com\/en\/all\/topic-and-payload\/"},"author":{"name":"Filippo Amabilia","@id":"https:\/\/support.ilevia.com\/en\/#\/schema\/person\/08a8d13dee0bc9f160da55efe97b7959"},"headline":"Topic and payload","datePublished":"2020-02-03T10:25:43+00:00","dateModified":"2024-11-28T16:04:08+00:00","mainEntityOfPage":{"@id":"https:\/\/support.ilevia.com\/en\/all\/topic-and-payload\/"},"wordCount":1990,"publisher":{"@id":"https:\/\/support.ilevia.com\/en\/#organization"},"articleSection":["All Archives","Shelly"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/support.ilevia.com\/en\/all\/topic-and-payload\/","url":"https:\/\/support.ilevia.com\/en\/all\/topic-and-payload\/","name":"Topic and payload Ilevia Support |","isPartOf":{"@id":"https:\/\/support.ilevia.com\/en\/#website"},"datePublished":"2020-02-03T10:25:43+00:00","dateModified":"2024-11-28T16:04:08+00:00","description":"An accurate explenation of what are the topics and the payload and how they work inside the MQTT protocol.","breadcrumb":{"@id":"https:\/\/support.ilevia.com\/en\/all\/topic-and-payload\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/support.ilevia.com\/en\/all\/topic-and-payload\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/support.ilevia.com\/en\/all\/topic-and-payload\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/support.ilevia.com\/en\/"},{"@type":"ListItem","position":2,"name":"Shelly","item":"https:\/\/support.ilevia.com\/en\/shelly\/"},{"@type":"ListItem","position":3,"name":"Topic and payload"}]},{"@type":"WebSite","@id":"https:\/\/support.ilevia.com\/en\/#website","url":"https:\/\/support.ilevia.com\/en\/","name":"Ilevia Support","description":"Assistance &amp; Technical Guides","publisher":{"@id":"https:\/\/support.ilevia.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/support.ilevia.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/support.ilevia.com\/en\/#organization","name":"Ilevia","url":"https:\/\/support.ilevia.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/support.ilevia.com\/en\/#\/schema\/logo\/image\/","url":"http:\/\/support.ilevia.com\/wp-content\/uploads\/2018\/12\/ilevia.png","contentUrl":"http:\/\/support.ilevia.com\/wp-content\/uploads\/2018\/12\/ilevia.png","width":500,"height":500,"caption":"Ilevia"},"image":{"@id":"https:\/\/support.ilevia.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/ileviaofficial\/","https:\/\/www.instagram.com\/ilevia_official\/","https:\/\/it.linkedin.com\/company\/ilevia\/","https:\/\/www.youtube.com\/ilevia\/"]},{"@type":"Person","@id":"https:\/\/support.ilevia.com\/en\/#\/schema\/person\/08a8d13dee0bc9f160da55efe97b7959","name":"Filippo Amabilia","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0e396093874891309dc46571e6eec478bc2a5080be4f76a70e1ca9deb9f99eec?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0e396093874891309dc46571e6eec478bc2a5080be4f76a70e1ca9deb9f99eec?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0e396093874891309dc46571e6eec478bc2a5080be4f76a70e1ca9deb9f99eec?s=96&d=mm&r=g","caption":"Filippo Amabilia"},"url":"https:\/\/support.ilevia.com\/en\/author\/filippo-amabilia\/"}]}},"_links":{"self":[{"href":"https:\/\/support.ilevia.com\/en\/wp-json\/wp\/v2\/posts\/7789","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.ilevia.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.ilevia.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.ilevia.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/support.ilevia.com\/en\/wp-json\/wp\/v2\/comments?post=7789"}],"version-history":[{"count":135,"href":"https:\/\/support.ilevia.com\/en\/wp-json\/wp\/v2\/posts\/7789\/revisions"}],"predecessor-version":[{"id":76274,"href":"https:\/\/support.ilevia.com\/en\/wp-json\/wp\/v2\/posts\/7789\/revisions\/76274"}],"wp:attachment":[{"href":"https:\/\/support.ilevia.com\/en\/wp-json\/wp\/v2\/media?parent=7789"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.ilevia.com\/en\/wp-json\/wp\/v2\/categories?post=7789"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.ilevia.com\/en\/wp-json\/wp\/v2\/tags?post=7789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}