|
|
@ -81,10 +81,6 @@ MmsServer_create(MmsDevice* device, TLSConfiguration tlsConfiguration)
|
|
|
|
if (isoServer == NULL)
|
|
|
|
if (isoServer == NULL)
|
|
|
|
goto exit_error;
|
|
|
|
goto exit_error;
|
|
|
|
|
|
|
|
|
|
|
|
#if (CONFIG_MMS_THREADLESS_STACK != 1)
|
|
|
|
|
|
|
|
IsoServer_setUserLock(isoServer, self->modelMutex);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LinkedList_add(self->isoServerList, isoServer);
|
|
|
|
LinkedList_add(self->isoServerList, isoServer);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -132,8 +128,6 @@ MmsServer_addAP(MmsServer self, const char* ipAddr, int tcpPort, TLSConfiguratio
|
|
|
|
|
|
|
|
|
|
|
|
if (isoServer) {
|
|
|
|
if (isoServer) {
|
|
|
|
|
|
|
|
|
|
|
|
IsoServer_setUserLock(isoServer, self->modelMutex);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IsoServer_setLocalIpAddress(isoServer, ipAddr);
|
|
|
|
IsoServer_setLocalIpAddress(isoServer, ipAddr);
|
|
|
|
|
|
|
|
|
|
|
|
if (tcpPort != -1)
|
|
|
|
if (tcpPort != -1)
|
|
|
@ -479,7 +473,8 @@ mmsServer_setValue(MmsServer self, MmsDomain* domain, char* itemId, MmsValue* va
|
|
|
|
if (self->writeHandler != NULL) {
|
|
|
|
if (self->writeHandler != NULL) {
|
|
|
|
indication = self->writeHandler(self->writeHandlerParameter, domain,
|
|
|
|
indication = self->writeHandler(self->writeHandlerParameter, domain,
|
|
|
|
itemId, value, connection);
|
|
|
|
itemId, value, connection);
|
|
|
|
} else {
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
MmsValue* cachedValue;
|
|
|
|
MmsValue* cachedValue;
|
|
|
|
|
|
|
|
|
|
|
|
if (domain == NULL)
|
|
|
|
if (domain == NULL)
|
|
|
@ -497,7 +492,6 @@ mmsServer_setValue(MmsServer self, MmsDomain* domain, char* itemId, MmsValue* va
|
|
|
|
return indication;
|
|
|
|
return indication;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MmsValue*
|
|
|
|
MmsValue*
|
|
|
|
mmsServer_getValue(MmsServer self, MmsDomain* domain, char* itemId, MmsServerConnection connection, bool isDirectAccess)
|
|
|
|
mmsServer_getValue(MmsServer self, MmsDomain* domain, char* itemId, MmsServerConnection connection, bool isDirectAccess)
|
|
|
|
{
|
|
|
|
{
|
|
|
|