Zigbee Protocol Controller 1.6.0
zigpc_group_mgmt_mqtt.h
Go to the documentation of this file.
1/******************************************************************************
2 * # License
3 * <b>Copyright 2020 Silicon Laboratories Inc. www.silabs.com</b>
4 ******************************************************************************
5 * The licensor of this software is Silicon Laboratories Inc. Your use of this
6 * software is governed by the terms of Silicon Labs Master Software License
7 * Agreement (MSLA) available at
8 * www.silabs.com/about-us/legal/master-software-license-agreement. This
9 * software is distributed to you in Source Code format and is governed by the
10 * sections of the MSLA applicable to Source Code.
11 *
12 *****************************************************************************/
13
25#ifndef ZIGPC_GROUP_MGMT_MQTT_H
26#define ZIGPC_GROUP_MGMT_MQTT_H
27
28#include "zigpc_common_zigbee.h"
29#include "sl_status.h"
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
46
59 const zigbee_endpoint_id_t endpoint_id,
60 bool is_reported);
61
75 const zigbee_endpoint_id_t endpoint_id,
76 const zigbee_group_id_t group_id,
77 bool is_reported);
78
95 const zigbee_endpoint_id_t endpoint_id,
96 const char *base_cstr,
97 unsigned int base_cstr_size,
98 bool is_reported,
99 char *topic_string,
100 unsigned int topic_size);
101
120 const zigbee_eui64_t eui64,
121 const zigbee_endpoint_id_t endpoint_id,
122 bool is_reported,
123 char *payload_string,
124 size_t *payload_size);
125
145 const zigbee_endpoint_id_t endpoint_id,
146 const zigbee_group_id_t group_id,
147 bool is_reported,
148 char *const payload_string,
149 size_t *const payload_size);
150
152#ifdef __cplusplus
153}
154#endif
155#endif //ZIGPC_GROUP_MGMT_MQTT_H
uint32_t sl_status_t
Definition: sl_status.h:139
uint8_t zigbee_eui64_t[ZIGBEE_EUI64_SIZE]
Zigbee Device EUI64 ID.
Definition: zigpc_common_zigbee.h:193
uint16_t zigbee_group_id_t
Zigbee Group Id The internal representation of a group_id.
Definition: zigpc_common_zigbee.h:230
uint8_t zigbee_endpoint_id_t
A representation of the endpoint id used on the Zigbee protocol.
Definition: zigpc_common_zigbee.h:248
sl_status_t zigpc_group_mqtt_assemble_group_payload(const zigbee_eui64_t eui64, const zigbee_endpoint_id_t endpoint_id, bool is_reported, char *payload_string, size_t *payload_size)
Assemble the JSON payload for GroupList attribute. If there are no groupIDs part of a EUI64/endpoint ...
sl_status_t zigpc_group_mqtt_assemble_name_payload(const zigbee_eui64_t eui64, const zigbee_endpoint_id_t endpoint_id, const zigbee_group_id_t group_id, bool is_reported, char *const payload_string, size_t *const payload_size)
zigpc_group_mqtt_assemble_name_payload Assemble the payload for publishing a group name....
sl_status_t zigpc_group_mqttpub_member_groupname(const zigbee_eui64_t eui64, const zigbee_endpoint_id_t endpoint_id, const zigbee_group_id_t group_id, bool is_reported)
zigpc_group_mqttpub_member_groupname Publish the name of a group for a given member
sl_status_t zigpc_group_mqttpub_republish()
zigpc_group_mqttpub_republish
sl_status_t zigpc_group_mqttpub_grouplist(const zigbee_eui64_t eui64, const zigbee_endpoint_id_t endpoint_id, bool is_reported)
zigpc_group_mqttpub_grouplist Publish on the MQTT groups list topic for either REPORTED or DESIRED
sl_status_t zigpc_group_mqtt_assemble_topic(const zigbee_eui64_t eui64, const zigbee_endpoint_id_t endpoint_id, const char *base_cstr, unsigned int base_cstr_size, bool is_reported, char *topic_string, unsigned int topic_size)
zigpc_group_mqtt_assemble_topic
SL Status Codes.