ZCL IP#
API and Callbacks for the ZCL IP Component.
This component provides functionality to encapsulate and extract ZCL packets over IP to a remote Internet-connected host.
API#
Generate the outgoing proxy packet.
Generate the outgoing keep alive.
Retrive incoming encapsulated ZCL proxy packet.
Retrive incoming keepalive.
Retrive incoming configure remote clusters.
Generate outgoing configure remote cluster.
Generate outgoing add device.
Generate outgoing configure remote binding.
Generate outgoing device discovery update.
Get packet length.
Get received packet pointer.
get received packet command ID
Get received proxy packet eui64 pointer.
Retrived incoming add device.
Macros#
API Documentation#
emberAfPluginZclIpGenerateOutgoingProxyPacket#
EmberStatus emberAfPluginZclIpGenerateOutgoingProxyPacket (EmberApsFrame * apsFrame, EmberNodeId nodeId, EmberEUI64 eui64, uint8_t * zclMessageBuffer, uint16_t zclMessageBufferLength)
Generate the outgoing proxy packet.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberApsFrame * | N/A | apsFrame | |
EmberNodeId | N/A | nodeId | |
EmberEUI64 | N/A | eui64 | |
uint8_t * | N/A | zclMessageBuffer | |
uint16_t | N/A | zclMessageBufferLength |
Returns
EmberStatus status code
emberAfPluginZclIpGenerateOutgoingKeepalive#
EmberStatus emberAfPluginZclIpGenerateOutgoingKeepalive (uint32_t unixTime, uint32_t nextKeepaliveDelaySeconds)
Generate the outgoing keep alive.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | N/A | unixTime | |
uint32_t | N/A | nextKeepaliveDelaySeconds |
Returns
EmberStatus status code
emberAfPluginZclIpRetrieveIncomingEncapsulatedZclProxyPacket#
EmberStatus emberAfPluginZclIpRetrieveIncomingEncapsulatedZclProxyPacket (EmberAfClusterCommand * returnCmd, EmberEUI64 returnEui64)
Retrive incoming encapsulated ZCL proxy packet.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberAfClusterCommand * | N/A | returnCmd | |
EmberEUI64 | N/A | returnEui64 |
Returns
EmberStatus status code
emberAfPluginZclIpRetrieveIncomingKeepalive#
EmberStatus emberAfPluginZclIpRetrieveIncomingKeepalive (uint32_t * unixTimeSinceEpoch, uint32_t * nextKeepaliveDelaySeconds)
Retrive incoming keepalive.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t * | N/A | unixTimeSinceEpoch | |
uint32_t * | N/A | nextKeepaliveDelaySeconds |
Returns
EmberStatus status code
emberAfPluginZclIpRetrieveIncomingConfigureRemoteClusters#
EmberStatus emberAfPluginZclIpRetrieveIncomingConfigureRemoteClusters (EmberAfRemoteClusterStruct * returnData, uint16_t maxCount, uint16_t * returnedCount)
Retrive incoming configure remote clusters.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberAfRemoteClusterStruct * | N/A | returnData | struct for remote cluster data |
uint16_t | N/A | maxCount | |
uint16_t * | N/A | returnedCount |
Returns
EmberStatus status code
emberAfPluginZclIpGenerateOutgoingConfigureRemoteCluster#
EmberStatus emberAfPluginZclIpGenerateOutgoingConfigureRemoteCluster (uint16_t count, const EmberAfRemoteClusterStruct * records)
Generate outgoing configure remote cluster.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint16_t | N/A | count | |
const EmberAfRemoteClusterStruct * | N/A | records | struct for remote cluster data |
Returns
EmberStatus status code
emberAfPluginZclIpGenerateOutgoingAddDevice#
EmberStatus emberAfPluginZclIpGenerateOutgoingAddDevice (EmberEUI64 newDeviceEui64, const EmberKeyData * newDeviceKeyData)
Generate outgoing add device.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberEUI64 | N/A | newDeviceEui64 | |
const EmberKeyData * | N/A | newDeviceKeyData |
Returns
EmberStatus status code
emberAfPluginZclIpGenerateOutgoingConfigureRemoteBinding#
EmberStatus emberAfPluginZclIpGenerateOutgoingConfigureRemoteBinding (EmberEUI64 targetEUI64, uint8_t sourceEndpoint, uint8_t destEndpoint, uint16_t clusterId, EmberEUI64 destEUI64, EmberEUI64 sourceEUI64)
Generate outgoing configure remote binding.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberEUI64 | N/A | targetEUI64 | |
uint8_t | N/A | sourceEndpoint | |
uint8_t | N/A | destEndpoint | |
uint16_t | N/A | clusterId | |
EmberEUI64 | N/A | destEUI64 | |
EmberEUI64 | N/A | sourceEUI64 |
Returns
EmberStatus status code
emberAfPluginZclIpGenerateOutgoingDeviceDiscoveryUpdate#
EmberStatus emberAfPluginZclIpGenerateOutgoingDeviceDiscoveryUpdate (const EmberAfDeviceInfo * device)
Generate outgoing device discovery update.
Type | Direction | Argument Name | Description |
---|---|---|---|
const EmberAfDeviceInfo * | N/A | device | Pointer to device info struct |
Returns
EmberStatus status code
emberAfPluginZclIpGetPacketLength#
uint16_t emberAfPluginZclIpGetPacketLength (const uint8_t * zclIpPacket)
Get packet length.
Type | Direction | Argument Name | Description |
---|---|---|---|
const uint8_t * | N/A | zclIpPacket |
Returns
uint16_t packet length
emberAfPluginZclIpGetReceivedPacketPointer#
uint8_t* emberAfPluginZclIpGetReceivedPacketPointer (void )
Get received packet pointer.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Returns
uint8_t* pointer to the received packet
emberAfPluginZclIpGetReceivedPacketCommandId#
uint16_t emberAfPluginZclIpGetReceivedPacketCommandId (void )
get received packet command ID
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Returns
uint16_t command ID
emberAfPluginZclIpGetReceivedProxyPacketEui64Pointer#
uint8_t* emberAfPluginZclIpGetReceivedProxyPacketEui64Pointer (void )
Get received proxy packet eui64 pointer.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Returns
uint8_t eui64 packet pointer
emberAfPluginZclIpRetrieveIncomingAddDevice#
EmberStatus emberAfPluginZclIpRetrieveIncomingAddDevice (EmberEUI64 newDeviceEui64, EmberKeyData * newDeviceKeyData)
Retrived incoming add device.
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberEUI64 | N/A | newDeviceEui64 | |
EmberKeyData * | N/A | newDeviceKeyData |
Returns
EmberStatus status code
emberAfPluginZclIpRetrieveIncomingConfigureRemoteBinding#
EmberStatus emberAfPluginZclIpRetrieveIncomingConfigureRemoteBinding (EmberAfRemoteBindingStruct * returnData)
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberAfRemoteBindingStruct * | N/A | returnData | Pointer to the remote binding struct |
Retrive incoming configure remote binding
Returns
EmberStatus status code
emberAfPluginZclIpRetrieveIncomingDeviceDiscoveryUpdate#
EmberStatus emberAfPluginZclIpRetrieveIncomingDeviceDiscoveryUpdate (EmberAfDeviceInfo * device)
Type | Direction | Argument Name | Description |
---|---|---|---|
EmberAfDeviceInfo * | N/A | device | pointer to the device info struct |
Retrive incoming device discovery update
Returns
EmberStatus status code