[dev] Security in IoTivity

2017-05-23 Thread maxi wu
: ??? [mailto:jihyeok13@samsung.com] Sent: Monday, January 16, 2017 12:34 PM To: maxi wu Cc: iotivity-dev at lists.iotivity.org Subject: RE: Re: [dev] Security in IoTivity Hi Maxi, We are working on improving document for ACL. Current implementation is, user can set ACL to each device for

[dev] why does CoapClient.sendRequest() changes the value of request token?

2017-05-01 Thread maxi wu
Could someone explain this design? Best Regards, Maxi Wu maxi.wu at u-media.com.tw tel: +886 3 579 7969 ext 8319 -- next part -- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20170501/7faecf44/attachment.html>

[dev] Mutli user scenario in iotivity Cloud - Group

2017-04-06 Thread maxi wu
JK, discovering devices, do you mean /oic/prs? I am testing this on 1.2.1, seems like group devices (you are a member of that group) presence is not included. It seems out of place where user could not discovery devices which they have permission to interact with. From: iotivity-dev-bounces

[dev] Jira cleanup

2017-03-28 Thread maxi wu
I think Gregg has a point. There are bug reports on jira which potentially a big security threat to systems running Iotivity. Which only Iotivity devs have knowledge to judge whether it is a severe bug or just something minor and could be ignored. From: iotivity-dev-bounces at lists.iotivit

[dev] bouncycastleprovider thow illegal key size exception

2017-01-24 Thread maxi wu
Hello, I am testing TLS on a Ubuntu 14.04 with java-8-oracle. I have already manually update the JCE Unlimited Strength Jurisdiction Policy under /usr/lib/jvm/java-8-oracle, reboot many times. Is there any other possibility causing this exception? Best Regards, Maxi Wu maxi.wu at u

[dev] trying to send a COAP message from RD server to Device

2017-01-20 Thread maxi wu
(). But the channelRead0() in interface server ServerSystem class is not fired. Do not know where to look, Is that message really being sent? Or it is received and ignore by interface pipeline? Best Regards, Maxi Wu maxi.wu at u-media.com.tw tel: +886 3 579 7969 ext 8319

[dev] Security in IoTivity

2017-01-12 Thread maxi wu
While you are discussing SSL and related security features, I want to discuss what ACL does. I am testing the group_invite_sample, I could create/join/add device. I think other members could discover devices which have joined the group. But I also notice there is a permission 31 in group info

[dev] build failure in master branch

2017-01-09 Thread maxi wu
I suggest that if there is a wiki page focus on troubleshooting of building process, that would help save a lot of time. I am completely blown away that over 80% chance build fail on each new release, from 1.1.0 to 1.2.1 If not for this mail, I wouldn?t be able to build 1.2.1 successfully

[dev] A question about cloud client sample aircon_controller

2016-12-05 Thread maxi wu
I am not iotivity dev, but I have spent some time testing their cloud server, here is what I know. If you are testing cloud, both controller and controllee are connected to cloud only, not to each other. So, all messages are sent to cloud, you could look into the cloud code to understand what t

[dev] 1.2.0 build failure

2016-11-22 Thread maxi wu
or. (5.4.1 20160904) -Original Message- From: ??? (Uze Choi) [mailto:uzc...@samsung.com] Sent: Tuesday, November 22, 2016 2:44 PM To: 'maxi wu'; iotivity-dev at lists.iotivity.org Subject: RE: [dev] 1.2.0 build failure Hi Maxi, Think about following example. IoTivity next month rele

[dev] 1.2.0 build failure

2016-11-22 Thread maxi wu
Hi Choi, I have to agree with Greg, something that is released should be built without hacking/patching. This problem could be fixed by modifying SCONS script, sure. But I am very interested in the decision making and the reasoning behind choosing a particular tag of a build of some ext. libs. Why

[dev] is there any document for 1.2.0 RC2 cloud?

2016-09-21 Thread maxi wu
Hi devs, I've build and test 1.2.0 RC2 cloud with sample client, it works fine. But then I look into the source code, it's like there isn't any comments in all classes and methods. For example there is a class DeviceServerSystem, but what does it do? Best Regards, Maxi W

[dev] Cloud samples are not working

2016-09-01 Thread maxi wu
Hi Eshwar, I am not from Iotivity team, but I have done some test on version 1.1.0, are you testing the latest version 1.2.0 RC? From: iotivity-dev-boun...@lists.iotivity.org [mailto:iotivity-dev-bounces at lists.iotivity.org] On Behalf Of Punna Eshwar Chandra Sent: Wednesday, August 31, 2016

[dev] branch 9141 build need help

2016-08-24 Thread maxi wu
, thank you. Best Regards, Maxi Wu maxi.wu at u-media.com.tw tel: +886 3 579 7969 ext 8319 -- next part -- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160824/35788bc0/attachment.html>

[dev] IoTivity base layer scope and architecture

2016-07-29 Thread maxi wu
I think cloud related code should be added to service layer. The current release service layer could not handle cloud regieter (get session using github oauth). From: iotivity-dev-boun...@lists.iotivity.org [mailto:iotivity-dev- bounces at lists.iotivity.org] On Behalf Of ???(Uze Choi) Sent: T

[dev] IoTivity binary release for Android

2016-07-20 Thread maxi wu
I would like to have a .jar, but the current situation, I would say I couldn't see this coming any soon. Because, the .jar is just a binding layer over C++ object files. Which means it does nothing without those C++ files. And those C++ files is built depending on ARCH, for example ARM. That

[dev] Confused about Cloud RD service response to GET /oic/res

2016-07-18 Thread maxi wu
code resourceManager.registerResource() does not mean OIC resource. And there is no way to discover that if the Server support /oic/rd, is that correct? Best Regards, Maxi Wu maxi.wu at u-media.com.tw tel: +886 3 579 7969 ext 8319 -- next part -- An HTML attachmen

[dev] error message from cloud, st is not null

2016-07-06 Thread Maxi Wu
Hi everyone, I am testing 1.1.0 cloud, and encounter two problems. 1. Sometimes when I send discovery request to cloud, cloud RD log shows this message and response with a FORBIDDEN message st is not null, so this is the get msg about private devices (st = search type, don't know what th

[dev] implementing RH service on Cloud

2016-06-28 Thread Maxi Wu
Hi everyone, I am trying to add RH service to cloud. I am considering which way to implement it and would like some guidance. 1. add a CoapRelayHandler() to a RH server, port 5686 maybe 2. add RH ability to RD server by registerResource(new ResourceHostingResource()) Which way woul

[dev] What does these error means? and some information on generic Java support

2016-06-21 Thread Maxi Wu
Hi everyone, I am testing simpleserver and simpleclient, they work fine, but when I run simpleserver in debug mode, it shows some error, I don't know what they meant. But if they are tagged as ERROR, I want to know more about them. PART I 45:26.707 ERROR: SRM-PSI: FindSVRDatabaseSize faile

[dev] Is it possible to port the Java(Android) API to general java application?

2016-06-17 Thread maxi wu
set those env. I?ve try to run ./auto_build without sudo, it will gives me boost_thread error, don?t know what that means. From: iotivity-dev-bounces at lists.iotivity.org [mailto:iotivity-dev-boun...@lists.iotivity.org] On Behalf Of Maxi Wu Sent: Friday, June 17, 2016 11:14 AM To: '

[dev] SCONS log suggestion

2016-06-17 Thread Maxi Wu
Hi everyone, When ./auto_build is run, it is a batch join to build many files, but the log is a wall of text without saying which component is giving out that message. For example, I see a JAVA_HOME is not set message, but it does not tell me what component that it is trying to build. (P.S. my

[dev] Is it possible to port the Java(Android) API to general java application?

2016-06-17 Thread Maxi Wu
he compile with an error if BUILD_JAVA is ON and it's not set. -- Petre Eftime On Thu, 2016-06-16 at 15:12 +0800, maxi wu wrote: Hi Petre, After I run these two commands at iotivity root folder, it gives me Error: Could not find or load main class org.iotivity.base.examples.SimpleCli

[dev] Is it possible to port the Java(Android) API to general java application?

2016-06-16 Thread Maxi Wu
warning message and does not compile the Java bindings if it's not set. I'll make it stop the compile with an error if BUILD_JAVA is ON and it's not set. -- Petre Eftime On Thu, 2016-06-16 at 15:12 +0800, maxi wu wrote: Hi Petre, After I run these two commands at iotivity

[dev] Is it possible to port the Java(Android) API to general java application?

2016-06-16 Thread maxi wu
Hi Petre, After I run these two commands at iotivity root folder, it gives me Error: Could not find or load main class org.iotivity.base.examples.SimpleClient I looked into folder /java/iotivity-linux/, there is only /src, don?t have a /build folder, so there is no iotivity-linux.jar I com

[dev] android/osx build

2016-06-15 Thread maxi wu
Ran into android build error on my Ubuntu 14.04. I have tried with pre-installed sdk and without sdk. Installed NDK too. It was like Gregg mentioned, env variable does not work properly, have to assign with command line. And also ndk r11c will produce an error saying that wchar.h no such fi

[dev] Java on Darwin available (but: need help running samples)

2016-06-15 Thread maxi wu
Hi Gregg, You could read the attached doc for JNI binding on Android. I am reading it and trying to expose more core sdk function to Java layer, for example OCDoResource() A related question. I have tried Petre?s code 7895, it compiles ok, but I remember I don?t see any .jar, maybe I am d

[dev] iotivity cloud question regarding OIC core spec

2016-06-08 Thread Maxi Wu
Hi everyone, I am testing cloud RD server (through CI), when I test publishing resources, some questions arise. 1. Does RD server only accept publishing resources in a collection with tag? Even if I am publishing only 1 resource with a unique URI? 2. From OIC core spec, value type of

[dev] draft darwin port available

2016-06-07 Thread maxi wu
Hi Gregg, Interested in generic java port. Are you going to use JNI wrap over C++ sdk? Appreciate if you could share your ideas, thank you. From: iotivity-dev-bounces at lists.iotivity.org [mailto:iotivity-dev-boun...@lists.iotivity.org] On Behalf Of Gregg Reynolds Sent: Friday, June 03, 20

[dev] Rule Engine Feature in Iotivity

2016-06-01 Thread maxi wu
There is rule feature in OIC core spec 1.0.0, is that already implement in Iotivity? -Original Message- From: iotivity-dev-boun...@lists.iotivity.org [mailto:iotivity-dev-bounces at lists.iotivity.org] On Behalf Of Thiago Macieira Sent: Tuesday, May 31, 2016 11:33 PM To: iotivity-dev at l

[dev] Next items for cloud

2016-06-01 Thread maxi wu
Hi JK, It would be great to have a generic java sdk (or JNI linux) for iotivity cloud. I am working on a client with CoAP, but the server ability is a lot more complex. From: iotivity-dev-bounces at lists.iotivity.org [mailto:iotivity-dev-boun...@lists.iotivity.org] On Behalf Of ??? Sent:

[dev] Spam : Re: Is it possible to port the Java(Android) API to general java application?

2016-05-30 Thread Maxi Wu
: Saturday, May 28, 2016 8:17 PM To: Maxi Wu Cc: Eftime, Petre P; uzchoi at samsung.com; iotivity-dev at lists.iotivity.org Subject: Spam : Re: [dev] Is it possible to port the Java(Android) API to general java application? On Fri, May 6, 2016 at 2:41 AM, Maxi Wu wrote: Eftime, Report on what

[dev] is there a document which explain RESTful API?

2016-05-26 Thread Maxi Wu
Hi everyone, I am looking for a document which list all the RESTful API and explain the purpose of each command. For example Register to cloud Uri: /oic/auth?reqtype=register Payload: {authcode:x, authprovider:x} Others like, /oic/p, /oic/res, /oid/d, /oic/prs And also what is the

[dev] FW: Re: iotivity 1.1.0 build problem

2016-05-26 Thread Maxi Wu
I have too ran into jcenter problem too, I then figure out that my gradle version is not up to date, after updating gradle, the problem is gone. From: iotivity-dev-bounces at lists.iotivity.org [mailto:iotivity-dev-boun...@lists.iotivity.org] On Behalf Of HUNJE YEON Sent: Wednesday, May 25, 20

[dev] Client sample client is returning 46 and account server returning an error.

2016-05-20 Thread Maxi Wu
>From what I have experience, the Account Server does not have error handling in place. If github return anything other then the grant code, that is something like a http url reference to documentation, when your authcode is invalid, Account Server will still accept it, but when it trys to pars

[dev] cloud sample client return code 46

2016-05-18 Thread Maxi Wu
Oops, it turns out github authcode has a short lifetime. It changes, I just revoked a new auth code and it returns 1 now. From: Maxi Wu [mailto:maxi...@u-media.com.tw] Sent: Wednesday, May 18, 2016 6:39 PM To: iotivity-dev at lists.iotivity.org Subject: cloud sample client return code 46

[dev] cloud sample client return code 46

2016-05-18 Thread Maxi Wu
Hi everyone, I am testing the cloud_device, according to wiki, I run the command ./cloud_device 127.0.0.1 5683, then input github and my authcode It gives the following message OCCloudRegisterLogin return 0 Waiting reponse.. Register response received code: 46 I am expecting code: 1 and

[dev] oauth2_over_coap wiki sequence diagram

2016-05-18 Thread Maxi Wu
Hi everyone, I am testing cloud_device sample, and by looking at the CI server receive message, at step 5, it is /oic/auth But the diagram here https://wiki.iotivity.org/oauth2_over_coap shows /oic/rd If I send /oic/rd request with authcode and authprovider, it will be rejected with unauthor

[dev] create a cloud client using CloudStack.jar

2016-05-17 Thread Maxi Wu
Hi everyone, I am looking at the source of CloudStack and csdk, and would like to connect to iotivity cloud as a client. Csdk use a OCDoResource() function to send payload with properties authprovider and authcode to login. Does this mean, We are able to login using CloudStack CoapClient cla

[dev] Regarding IoTivity

2016-05-13 Thread Maxi Wu
You could try Android Studio, may have better compatibility with android example code. From: iotivity-dev-bounces at lists.iotivity.org [mailto:iotivity-dev-boun...@lists.iotivity.org] On Behalf Of Ragul Bhagwanth Sent: Thursday, May 12, 2016 7:29 PM To: iotivity-dev at lists.iotivity.org Su

[dev] looking for generic Java API for cloud

2016-05-12 Thread Maxi Wu
ow do you do it? With SWIG tool? From: Jee Hyeok Kim [mailto:jihyeok13@samsung.com] Sent: Thursday, May 12, 2016 7:19 PM To: Maxi Wu; iotivity-dev at lists.iotivity.org Subject: Re: [dev] looking for generic Java API for cloud Hi Maxi Wu, We implemented java cloud client API using

[dev] How to operate easy setup on iotivity?

2016-05-11 Thread Maxi Wu
ontain android build command. For example ./auto_build.sh build_android_armeabi From: ??? [mailto:friend3...@gmail.com] Sent: Wednesday, May 11, 2016 5:39 AM To: h.mahsky at samsung.com; Maxi Wu; jihun.ha at samsung.com Cc: iotivity-dev at lists.iotivity.org Subject: Re: Re: [dev] How to operat

[dev] looking for generic Java API for cloud

2016-05-10 Thread Maxi Wu
ud/samples/client/sample_device.cpp There is method like OCDoResource(), where could I find the JNI wrapper source code? I want to read that wrapper and figure out what method to use in order to achieve OAuth login. Does anyone know? thank you, Maxi Wu -- next part

[dev] How to operate easy setup on iotivity?

2016-05-09 Thread Maxi Wu
I haven?t try Android build, but here is my two cents, may not be correct. The error say your are missing some environment variable, not scons arguments. When you execute scons arg=value, those are arguments. If you are compile on Linux, I think you could define ANDROID_NDK and ANDROID_GRADLE

[dev] Is it possible to port the Java(Android) API to general java application?

2016-05-06 Thread Maxi Wu
lists.iotivity.org [mailto:iotivity-dev-bounces at lists.iotivity.org] On Behalf Of Maxi Wu Sent: Thursday, May 5, 2016 5:02 PM To: 'Eftime, Petre P'; uzchoi at samsung.com; iotivity-dev at lists.iotivity.org Subject: Re: [dev] Is it possible to port the Java(Android) API to general java appli

[dev] Is it possible to port the Java(Android) API to general java application?

2016-05-05 Thread Maxi Wu
pop up. Could not fetch model of type 'GradleBuild' ysing Gradle distribution http://services.gradle.org/distributions/gradle-2.2.1-all.zip Please give me some information or what command to use, on how to build java examples and core for Linux platform. Thanks a lot, From: Maxi Wu [ma

[dev] Is it possible to port the Java(Android) API to general java application?

2016-05-04 Thread Maxi Wu
drastic change, implementing a generic Java CoAP client could be a viable solution. From: Eftime, Petre P [mailto:petre.p.eft...@intel.com] Sent: Wednesday, April 27, 2016 8:07 PM To: uzchoi at samsung.com; 'Maxi Wu'; iotivity-dev at lists.iotivity.org Subject: RE: [dev] Is it possible t

[dev] Is it possible to port the Java(Android) API to general java application?

2016-04-27 Thread Maxi Wu
Hi, Java is cross-platform, but JNI uses native library. Is it possible to use this Android API like normal JAVA application? If not, How to create a Java client? Do we need to interact with iotivity cloud using CoAP? -- next part -- An HTML attachment was scrubbed... U