Skip to content
This repository has been archived by the owner on Jun 29, 2021. It is now read-only.

Commit

Permalink
Merge pull request #13 from openconnectivity/develop
Browse files Browse the repository at this point in the history
Merge develop into master
  • Loading branch information
javiguerra committed Oct 21, 2019
2 parents 5c1ac91 + 09b8432 commit 255dc70
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ git checkout swig
2. Apply all patchs of the OTGC in IoTivity-lite
```
git apply <otgc-linux>/extlibs/patchs/remove_cred_by_credid.patch
git apply <otgc-linux>/extlibs/patchs/fix_config.patch
```
3. Go to the linux directory.
```
Expand Down
2 changes: 1 addition & 1 deletion build/debian/otgc_native.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

# Constants
PROJECT_NAME="otgc"
VERSION="2.3.0"
VERSION="2.4.0"

program=$0

Expand Down
13 changes: 13 additions & 0 deletions extlibs/patchs/fix_config.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/port/linux/oc_config.h b/port/linux/oc_config.h
index 8e801156..7c8fbd78 100644
--- a/port/linux/oc_config.h
+++ b/port/linux/oc_config.h
@@ -34,7 +34,7 @@ typedef uint64_t oc_clock_time_t;
/* Add support for the oic.if.create interface in Collections */
#define OC_COLLECTIONS_IF_CREATE
/* Add support for the maintenance resource */
-#define OC_MNT
+//#define OC_MNT
/* If we selected support for dynamic memory allocation */
#ifdef OC_DYNAMIC_ALLOCATION
#define OC_COLLECTIONS
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>otgc</groupId>
<artifactId>otgc</artifactId>
<version>2.3.0</version>
<version>2.4.0</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,14 @@ private void processIntrospectResponse(ObservableValue<? extends Response<List<D
notificationCenter.publish(NotificationKey.SET_PROGRESS_STATUS, true);
break;
case SUCCESS:
notificationCenter.publish(NotificationKey.SET_PROGRESS_STATUS, false);
viewModel.buildUiForIntrospect(newValue.data);
box.getChildren().clear();
if (!newValue.data.isEmpty()) {
notificationCenter.publish(NotificationKey.SET_PROGRESS_STATUS, false);
viewModel.buildUiForIntrospect(newValue.data);
box.getChildren().clear();
} else {
notificationCenter.publish(NotificationKey.SET_PROGRESS_STATUS, false);
viewModel.findResources();
}
break;
default:
notificationCenter.publish(NotificationKey.SET_PROGRESS_STATUS, false);
Expand Down

0 comments on commit 255dc70

Please sign in to comment.