https://github.com/rzr/iotivity
Mirror of the IoTivity Framework
https://github.com/rzr/iotivity
Last synced: 8 months ago
JSON representation
Mirror of the IoTivity Framework
- Host: GitHub
- URL: https://github.com/rzr/iotivity
- Owner: rzr
- License: apache-2.0
- Created: 2015-01-19T15:57:55.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2022-05-20T20:55:45.000Z (over 3 years ago)
- Last Synced: 2025-04-05T08:56:43.616Z (8 months ago)
- Language: C++
- Homepage: http://www.iotivity.org
- Size: 82.5 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README-building-and-running-remote-access-sample.txt
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
== Quick guide: build and run IoTivity(remote access) projects on Ubuntu ==
1. Build
Go to the top directory of 'iotivity' project
(Note: should always run 'scons' command in this directory)
Install external libraries (on Debian based OS):
$ sudo apt-get install libboost-dev libboost-program-options-dev libboost-thread-dev uuid-dev libssl-dev
$ sudo apt-get install libglib2.0-dev autoconf libtool chrpath
Or check this page for more updated info:
https://wiki.iotivity.org/os
Build release binaries:
$ scons WITH_RA=1 WITH_RA_IBB=1
(Note: C sdk requires tiny-cbor. Please follow the instruction in the build
message to install tiny-cbor)
Build debug binaries:
$ scons WITH_RA=1 WITH_RA_IBB=1 RELEASE=false
Help:
$ scons -h
Clear:
$ scons -c
2. Run the remote access testing
remote access samples in /out/linux/x86_64/release/resource/csdk/stack/samples/linux/SimpleClientServer
before testing,
setup a XMPP server and create an account in XMPP server
ex: account: user1@localhost / password: 1234
oic server:
$ ocserver -o 1 -u user1 -d localhost -w 1234 -s localhost
oic client:
$ ocremoteaccessclient -t 1 -u user1 -d localhost -w 1234 -s localhost
test steps:
1. run ocserver, and copy the bound jid
2. run ocremoteaccessclient on the another term, and paste the bound jid of ocserver and press 'Enter'
use '-t' to change testcase.