- Modify the "version" field in
package.json
, setting it to the version of iotivity against which you're building - Modify the references to the version in
README.md
- Build and optionally install the new version of iotivity
- If you haven't installed iotivity in the previous step, you must now export environment variables
OCTBSTACK_CFLAGS
andOCTBSTACK_LIBS
, because the next step needs them. - Run
./update-enums-and-constants.sh
- Update the commitid in
build-csdk.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <signal.h> | |
#include <glib.h> | |
#include <ocstack.h> | |
#include <ocpayload.h> | |
static int observationCount = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[13:00][nix@boundary][/home/nix/iot/iotivity]/$ git fetch ssh://[email protected]:29418/iotivity refs/changes/55/3055/1 && git checkout FETCH_HEAD | |
remote: Counting objects: 10316, done | |
remote: Finding sources: 100% (226/226) | |
remote: Total 226 (delta 89), reused 143 (delta 89) | |
Receiving objects: 100% (226/226), 103.15 KiB | 0 bytes/s, done. | |
Resolving deltas: 100% (89/89), completed with 69 local objects. | |
From ssh://gerrit.iotivity.org:29418/iotivity | |
* branch refs/changes/55/3055/1 -> FETCH_HEAD | |
M build_common/linux/SConscript | |
Warning: you are leaving 1 commit behind, not connected to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[11:36][nix@boundary][/home/nix/iot/iotivity]/$ git fetch ssh://[email protected]:29418/iotivity refs/changes/45/3045/1 && git checkout FETCH_HEAD | |
remote: Counting objects: 10219, done | |
remote: Finding sources: 100% (129/129) | |
remote: Total 129 (delta 58), reused 92 (delta 58) | |
Receiving objects: 100% (129/129), 42.50 KiB | 0 bytes/s, done. | |
Resolving deltas: 100% (58/58), completed with 42 local objects. | |
From ssh://gerrit.iotivity.org:29418/iotivity | |
* branch refs/changes/45/3045/1 -> FETCH_HEAD | |
M build_common/linux/SConscript | |
Note: checking out 'FETCH_HEAD'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[09:03][nix@boundary][/home/nix/iot/iotivity]/$ gdb out/linux/x86/release/resource/csdk/stack/samples/linux/SimpleClientServer/ocserver | |
GNU gdb (GDB) Fedora 7.8.2-39.fc21 | |
Copyright (C) 2014 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "i686-redhat-linux-gnu". | |
Type "show configuration" for configuration details. | |
For bug reporting instructions, please see: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CAProcessSendData (data=0x8054700) at resource/csdk/connectivity/src/camessagehandler.c:541 | |
541 if (CA_ADAPTER_GATT_BTLE != data->remoteEndpoint->adapter | |
Missing separate debuginfos, use: debuginfo-install glib2-2.42.2-1.fc21.i686 libffi-3.1-7.fc21.i686 libselinux-2.3-10.fc21.i686 libuuid-2.25.2-3.fc21.i686 pcre-8.35-12.fc21.i686 zlib-1.2.8-7.fc21.i686 | |
(gdb) bt | |
#0 0xffffffff in CASendThreadProcess (data=0x8054700) at resource/csdk/connectivity/src/camessagehandler.c:541 | |
#1 0xffffffff in CASendThreadProcess (threadData=0x8054700) at resource/csdk/connectivity/src/camessagehandler.c:636 | |
#2 0xffffffff in CAQueueingThreadBaseRoutine (threadValue=0xb7fd6700 <g_sendThread>) | |
at resource/csdk/connectivity/src/caqueueingthread.c:82 | |
#3 0xffffffff in ca_thread_pool_pthreads_delegate (data=0x8053068) | |
at resource/csdk/connectivity/common/src/cathreadpool_pthreads.c:62 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <glib.h> | |
#include <ocstack.h> | |
#include <signal.h> | |
static GMainLoop *loop; | |
static guint timeout_id; | |
static void deleteContextNoop( void *context ) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <glib.h> | |
#include <ocstack.h> | |
#include <signal.h> | |
static GMainLoop *loop; | |
static guint timeout_id; | |
static void deleteContextNoop( void *context ) {} |
link
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <nan.h> | |
#include <node.h> | |
#include <v8.h> | |
using namespace v8; | |
int counter = 0; | |
NAN_METHOD( bind_OCProcess ) { | |
NanScope(); |