case OC_STACK_RESOURCE_DELETED:
case OC_STACK_TIMEOUT:
case OC_STACK_COMM_ERROR:
-#ifdef WITH_PRESENCE
case OC_STACK_PRESENCE_STOPPED:
case OC_STACK_PRESENCE_TIMEOUT:
case OC_STACK_PRESENCE_DO_NOT_HANDLE:
-#endif
{
setDeviceState(DEVICE_STATE::LOST_SIGNAL);
changeAllPresenceMode(BROKER_MODE::NON_PRESENCE_MODE);