aqhome: re-implemented aqhomed.
- added IPC endpoint2
This commit is contained in:
@@ -155,6 +155,34 @@ uint16_t AQH_MqttClientEndpoint2_GetNextPacketId(const GWEN_MSG_ENDPOINT2 *ep)
|
||||
|
||||
|
||||
|
||||
const char *AQH_MqttClientEndpoint2_GetTopicPrefix(const GWEN_MSG_ENDPOINT2 *ep)
|
||||
{
|
||||
if (ep) {
|
||||
GWEN_MSG_ENDPOINT2 *epChild;
|
||||
|
||||
epChild=GWEN_MsgEndpoint2_Tree2_GetFirstChild(ep);
|
||||
if (epChild)
|
||||
return AQH_MqttEndpoint2_GetTopicPrefix(epChild);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void AQH_MqttClientEndpoint2_SetTopicPrefix(GWEN_MSG_ENDPOINT2 *ep, const char *s)
|
||||
{
|
||||
if (ep) {
|
||||
GWEN_MSG_ENDPOINT2 *epChild;
|
||||
|
||||
epChild=GWEN_MsgEndpoint2_Tree2_GetFirstChild(ep);
|
||||
if (epChild)
|
||||
AQH_MqttEndpoint2_SetTopicPrefix(epChild, s);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void _addSockets(GWEN_MSG_ENDPOINT2 *ep, GWEN_SOCKETSET *readSet, GWEN_SOCKETSET *writeSet, GWEN_SOCKETSET *xSet)
|
||||
|
||||
@@ -31,6 +31,9 @@ AQHOME_API void AQH_MqttClientEndpoint2_SetKeepAliveTime(GWEN_MSG_ENDPOINT2 *ep,
|
||||
|
||||
AQHOME_API uint16_t AQH_MqttClientEndpoint2_GetNextPacketId(const GWEN_MSG_ENDPOINT2 *ep);
|
||||
|
||||
AQHOME_API const char *AQH_MqttClientEndpoint2_GetTopicPrefix(const GWEN_MSG_ENDPOINT2 *ep);
|
||||
AQHOME_API void AQH_MqttClientEndpoint2_SetTopicPrefix(GWEN_MSG_ENDPOINT2 *ep, const char *s);
|
||||
|
||||
|
||||
AQHOME_API int AQH_MqttClientEndpoint2_StartConnect(GWEN_MSG_ENDPOINT2 *ep);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user